diff options
author | Adam <Adam@anope.org> | 2010-11-24 21:40:56 -0600 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-12 19:36:19 -0500 |
commit | cb6ef574e3df5cc846247450b74ca37d265f319e (patch) | |
tree | 8ce3374a537c312af63c78125bfea4622bb188f0 /modules/core/ns_getemail.cpp | |
parent | 37e02a3594fdddc3d5a3df0501c528f42db6c4da (diff) |
Send replies from fantasy commands back to the channel, this will be expanded on later
Diffstat (limited to 'modules/core/ns_getemail.cpp')
-rw-r--r-- | modules/core/ns_getemail.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/core/ns_getemail.cpp b/modules/core/ns_getemail.cpp index 14626ea97..ea61ac6ac 100644 --- a/modules/core/ns_getemail.cpp +++ b/modules/core/ns_getemail.cpp @@ -24,9 +24,10 @@ class CommandNSGetEMail : public Command { } - CommandReturn Execute(User *u, const std::vector<Anope::string> ¶ms) + CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) { - Anope::string email = params[0]; + User *u = source.u; + const Anope::string &email = params[0]; int j = 0; Log(LOG_ADMIN, u, this) << "on " << email; @@ -38,13 +39,13 @@ class CommandNSGetEMail : public Command if (!nc->email.empty() && nc->email.equals_ci(email)) { ++j; - u->SendMessage(NickServ, NICK_GETEMAIL_EMAILS_ARE, nc->display.c_str(), email.c_str()); + source.Reply(NICK_GETEMAIL_EMAILS_ARE, nc->display.c_str(), email.c_str()); } } if (j <= 0) { - u->SendMessage(NickServ, NICK_GETEMAIL_NOT_USED, email.c_str()); + source.Reply(NICK_GETEMAIL_NOT_USED, email.c_str()); return MOD_CONT; } |