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/extra/cs_tban.cpp | |
parent | 2b10cc84eab6cb9253611a090eb3ef67a6d3d0a7 (diff) |
The rest of the earlier command changes
Diffstat (limited to 'modules/extra/cs_tban.cpp')
-rw-r--r-- | modules/extra/cs_tban.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/extra/cs_tban.cpp b/modules/extra/cs_tban.cpp index a037c8243..af29e76f6 100644 --- a/modules/extra/cs_tban.cpp +++ b/modules/extra/cs_tban.cpp @@ -80,30 +80,30 @@ class CommandCSTBan : public Command get_idealban(c->ci, u2, mask); c->SetMode(NULL, CMODE_BAN, mask); new TempBan(dotime(time), c, mask); - me->SendMessage(ChanServ, u, _("%s banned from %s, will auto-expire in %s"), mask.c_str(), c->name.c_str(), time.c_str()); + me->SendMessage(source, _("%s banned from %s, will auto-expire in %s"), mask.c_str(), c->name.c_str(), time.c_str()); } return MOD_CONT; } - bool OnHelp(User *u, const Anope::string &subcommand) + bool OnHelp(CommandSource &source, const Anope::string &subcommand) { - this->OnSyntaxError(u, ""); - me->SendMessage(ChanServ, u, " "); - me->SendMessage(ChanServ, u, _("Bans the given user from a channel for a specified length of\n" + this->OnSyntaxError(source, ""); + me->SendMessage(source, " "); + me->SendMessage(source, _("Bans the given user from a channel for a specified length of\n" "time. If the ban is removed before by hand, it will NOT be replaced.")); return true; } - void OnSyntaxError(User *u, const Anope::string &subcommand) + void OnSyntaxError(CommandSource &source, const Anope::string &subcommand) { - me->SendMessage(ChanServ, u, _("Syntax: TBAN channel nick time")); + me->SendMessage(source, _("Syntax: TBAN channel nick time")); } - void OnServHelp(User *u) + void OnServHelp(CommandSource &source) { - me->SendMessage(ChanServ, u, _(" TBAN Bans the user for a given length of time")); + me->SendMessage(source, _(" TBAN Bans the user for a given length of time")); } }; |