summaryrefslogtreecommitdiff
path: root/modules/core/ns_getemail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/ns_getemail.cpp')
-rw-r--r--modules/core/ns_getemail.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/core/ns_getemail.cpp b/modules/core/ns_getemail.cpp
index ea61ac6ac..8a5586425 100644
--- a/modules/core/ns_getemail.cpp
+++ b/modules/core/ns_getemail.cpp
@@ -52,20 +52,20 @@ class CommandNSGetEMail : public Command
return MOD_CONT;
}
- bool OnHelp(User *u, const Anope::string &subcommand)
+ bool OnHelp(CommandSource &source, const Anope::string &subcommand)
{
- u->SendMessage(NickServ, NICK_SERVADMIN_HELP_GETEMAIL);
+ source.Reply(NICK_SERVADMIN_HELP_GETEMAIL);
return true;
}
- void OnSyntaxError(User *u, const Anope::string &subcommand)
+ void OnSyntaxError(CommandSource &source, const Anope::string &subcommand)
{
- SyntaxError(NickServ, u, "GETMAIL", NICK_GETEMAIL_SYNTAX);
+ SyntaxError(source, "GETMAIL", NICK_GETEMAIL_SYNTAX);
}
- void OnServHelp(User *u)
+ void OnServHelp(CommandSource &source)
{
- u->SendMessage(NickServ, NICK_HELP_CMD_GETEMAIL);
+ source.Reply(NICK_HELP_CMD_GETEMAIL);
}
};