diff options
author | Adam <Adam@anope.org> | 2010-11-27 00:04:13 -0600 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:37:00 -0500 |
commit | 71c433cc502cc6073dd1e9d5cab3f49f8f6fd49e (patch) | |
tree | c9a463b9155471e11a067fd9306bfa152b189b51 /modules/core/cs_forbid.cpp | |
parent | 2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 (diff) |
The rest of the earlier command changes
Diffstat (limited to 'modules/core/cs_forbid.cpp')
-rw-r--r-- | modules/core/cs_forbid.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/core/cs_forbid.cpp b/modules/core/cs_forbid.cpp index 669f6f5e7..19f4b6f04 100644 --- a/modules/core/cs_forbid.cpp +++ b/modules/core/cs_forbid.cpp @@ -31,7 +31,7 @@ class CommandCSForbid : public Command if (Config->ForceForbidReason && reason.empty()) { - SyntaxError(ChanServ, u, "FORBID", CHAN_FORBID_SYNTAX_REASON); + SyntaxError(source, "FORBID", CHAN_FORBID_SYNTAX_REASON); return MOD_CONT; } @@ -88,27 +88,27 @@ class CommandCSForbid : public Command ircdproto->SendGlobops(ChanServ, "\2%s\2 used FORBID on channel \2%s\2", u->nick.c_str(), ci->name.c_str()); Log(LOG_ADMIN, u, this, ci) << (!ci->forbidreason.empty() ? ci->forbidreason : "No reason"); - u->SendMessage(ChanServ, CHAN_FORBID_SUCCEEDED, chan.c_str()); + source.Reply(CHAN_FORBID_SUCCEEDED, chan.c_str()); FOREACH_MOD(I_OnChanForbidden, OnChanForbidden(ci)); return MOD_CONT; } - bool OnHelp(User *u, const Anope::string &subcommand) + bool OnHelp(CommandSource &source, const Anope::string &subcommand) { - u->SendMessage(ChanServ, CHAN_SERVADMIN_HELP_FORBID); + source.Reply(CHAN_SERVADMIN_HELP_FORBID); return true; } - void OnSyntaxError(User *u, const Anope::string &subcommand) + void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) { - SyntaxError(ChanServ, u, "FORBID", CHAN_FORBID_SYNTAX); + SyntaxError(source, "FORBID", CHAN_FORBID_SYNTAX); } - void OnServHelp(User *u) + void OnServHelp(CommandSource &source) { - u->SendMessage(ChanServ, CHAN_HELP_CMD_FORBID); + source.Reply(CHAN_HELP_CMD_FORBID); } }; |