diff options
Diffstat (limited to 'modules/core/ns_drop.cpp')
-rw-r--r-- | modules/core/ns_drop.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/core/ns_drop.cpp b/modules/core/ns_drop.cpp index b2dba8944..203a6388f 100644 --- a/modules/core/ns_drop.cpp +++ b/modules/core/ns_drop.cpp @@ -114,19 +114,20 @@ class CommandNSDrop : public Command return MOD_CONT; } - bool OnHelp(User *u, const Anope::string &subcommand) + bool OnHelp(CommandSource &source, const Anope::string &subcommand) { + User *u = source.u; if (u->Account() && u->Account()->HasPriv("nickserv/drop")) - u->SendMessage(NickServ, NICK_SERVADMIN_HELP_DROP); + source.Reply(NICK_SERVADMIN_HELP_DROP); else - u->SendMessage(NickServ, NICK_HELP_DROP); + source.Reply(NICK_HELP_DROP); return true; } - void OnServHelp(User *u) + void OnServHelp(CommandSource &source) { - u->SendMessage(NickServ, NICK_HELP_CMD_DROP); + source.Reply(NICK_HELP_CMD_DROP); } }; |