diff options
Diffstat (limited to 'modules/core/cs_set_signkick.cpp')
-rw-r--r-- | modules/core/cs_set_signkick.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/modules/core/cs_set_signkick.cpp b/modules/core/cs_set_signkick.cpp index 1960709b3..853b220e5 100644 --- a/modules/core/cs_set_signkick.cpp +++ b/modules/core/cs_set_signkick.cpp @@ -22,7 +22,6 @@ class CommandCSSetSignKick : public Command CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) { - User *u = source.u; ChannelInfo *ci = source.ci; if (!ci) throw CoreException("NULL ci in CommandCSSetSignKick"); @@ -46,25 +45,25 @@ class CommandCSSetSignKick : public Command source.Reply(CHAN_SET_SIGNKICK_OFF, ci->name.c_str()); } else - this->OnSyntaxError(u, "SIGNKICK"); + this->OnSyntaxError(source, "SIGNKICK"); return MOD_CONT; } - bool OnHelp(User *u, const Anope::string &) + bool OnHelp(CommandSource &source, const Anope::string &) { - u->SendMessage(ChanServ, CHAN_HELP_SET_SIGNKICK, "SET"); + source.Reply(CHAN_HELP_SET_SIGNKICK, "SET"); return true; } - void OnSyntaxError(User *u, const Anope::string &) + void OnSyntaxError(CommandSource &source, const Anope::string &) { - SyntaxError(ChanServ, u, "SET SIGNKICK", CHAN_SET_SIGNKICK_SYNTAX); + SyntaxError(source, "SET SIGNKICK", CHAN_SET_SIGNKICK_SYNTAX); } - void OnServHelp(User *u) + void OnServHelp(CommandSource &source) { - u->SendMessage(ChanServ, CHAN_HELP_CMD_SET_SIGNKICK); + source.Reply(CHAN_HELP_CMD_SET_SIGNKICK); } }; @@ -75,15 +74,15 @@ class CommandCSSASetSignKick : public CommandCSSetSignKick { } - bool OnHelp(User *u, const Anope::string &) + bool OnHelp(CommandSource &source, const Anope::string &) { - u->SendMessage(ChanServ, CHAN_HELP_SET_SIGNKICK, "SASET"); + source.Reply(CHAN_HELP_SET_SIGNKICK, "SASET"); return true; } - void OnSyntaxError(User *u, const Anope::string &) + void OnSyntaxError(CommandSource &source, const Anope::string &) { - SyntaxError(ChanServ, u, "SASET SIGNKICK", CHAN_SASET_SIGNKICK_SYNTAX); + SyntaxError(source, "SASET SIGNKICK", CHAN_SASET_SIGNKICK_SYNTAX); } }; |