mirror of
https://github.com/anope/anope.git
synced 2026-07-10 22:03:13 +02:00
Send replies from fantasy commands back to the channel, this will be expanded on later
This commit is contained in:
@@ -20,7 +20,7 @@ class CommandNSSetGreet : public Command
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, const std::vector<Anope::string> ¶ms)
|
||||
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms)
|
||||
{
|
||||
NickAlias *na = findnick(params[0]);
|
||||
if (!na)
|
||||
@@ -32,12 +32,12 @@ class CommandNSSetGreet : public Command
|
||||
if (!param.empty())
|
||||
{
|
||||
nc->greet = param;
|
||||
u->SendMessage(NickServ, NICK_SASET_GREET_CHANGED, nc->display.c_str(), nc->greet.c_str());
|
||||
source.Reply(NICK_SASET_GREET_CHANGED, nc->display.c_str(), nc->greet.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
nc->greet.clear();
|
||||
u->SendMessage(NickServ, NICK_SASET_GREET_UNSET, nc->display.c_str());
|
||||
source.Reply(NICK_SASET_GREET_UNSET, nc->display.c_str());
|
||||
}
|
||||
|
||||
return MOD_CONT;
|
||||
|
||||
Reference in New Issue
Block a user