mirror of
https://github.com/anope/anope.git
synced 2026-07-01 17:06:38 +02:00
The rest of the earlier command changes
This commit is contained in:
@@ -64,26 +64,26 @@ class CommandCSSetFounder : public Command
|
||||
ci->founder = nc;
|
||||
++nc->channelcount;
|
||||
|
||||
u->SendMessage(ChanServ, CHAN_FOUNDER_CHANGED, ci->name.c_str(), na->nick.c_str());
|
||||
source.Reply(CHAN_FOUNDER_CHANGED, ci->name.c_str(), na->nick.c_str());
|
||||
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
bool OnHelp(User *u, const Anope::string &)
|
||||
bool OnHelp(CommandSource &source, const Anope::string &)
|
||||
{
|
||||
u->SendMessage(ChanServ, CHAN_HELP_SET_FOUNDER, "SET");
|
||||
source.Reply(CHAN_HELP_SET_FOUNDER, "SET");
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnSyntaxError(User *u, const Anope::string &)
|
||||
void OnSyntaxError(CommandSource &source, const Anope::string &)
|
||||
{
|
||||
// XXX
|
||||
SyntaxError(ChanServ, u, "SET", CHAN_SET_SYNTAX);
|
||||
SyntaxError(source, "SET", CHAN_SET_SYNTAX);
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
void OnServHelp(CommandSource &source)
|
||||
{
|
||||
u->SendMessage(ChanServ, CHAN_HELP_CMD_SET_FOUNDER);
|
||||
source.Reply(CHAN_HELP_CMD_SET_FOUNDER);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -94,16 +94,16 @@ class CommandCSSASetFounder : public CommandCSSetFounder
|
||||
{
|
||||
}
|
||||
|
||||
bool OnHelp(User *u, const Anope::string &)
|
||||
bool OnHelp(CommandSource &source, const Anope::string &)
|
||||
{
|
||||
u->SendMessage(ChanServ, CHAN_HELP_SET_FOUNDER, "SASET");
|
||||
source.Reply(CHAN_HELP_SET_FOUNDER, "SASET");
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnSyntaxError(User *u, const Anope::string &)
|
||||
void OnSyntaxError(CommandSource &source, const Anope::string &)
|
||||
{
|
||||
// XXX
|
||||
SyntaxError(ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
|
||||
SyntaxError(source, "SASET", CHAN_SASET_SYNTAX);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user