1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 12:13:14 +02:00

Send replies from fantasy commands back to the channel, this will be expanded on later

This commit is contained in:
Adam
2010-11-24 21:40:56 -06:00
parent 37e02a3594
commit cb6ef574e3
154 changed files with 2428 additions and 2111 deletions
+5 -4
View File
@@ -24,9 +24,10 @@ class CommandNSGetEMail : public Command
{
}
CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
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;
}