diff options
author | Adam <Adam@anope.org> | 2011-03-05 17:23:22 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-05 17:23:22 -0500 |
commit | 6fe2d8af973dfb0c81f513e56488e39a4eea2fbf (patch) | |
tree | 432b93053ef56d1ff98b3193d5768a4ca16d3785 /src/mail.cpp | |
parent | 90e5d0feaa1646c28cfce45dbde1a914a6f1d62c (diff) |
Removed nickrequests, instead have unconfirmed registrations. Also made ns_resetpass allow remote-id to get past things such as kill immed.
Diffstat (limited to 'src/mail.cpp')
-rw-r--r-- | src/mail.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mail.cpp b/src/mail.cpp index 3a07f7e49..58a0ddac8 100644 --- a/src/mail.cpp +++ b/src/mail.cpp @@ -37,27 +37,6 @@ void MailThread::Run() SetExitState(); } -bool Mail(User *u, NickRequest *nr, BotInfo *service, const Anope::string &subject, const Anope::string &message) -{ - if (!u || !nr || !service || subject.empty() || message.empty()) - return false; - - if (!Config->UseMail) - u->SendMessage(service, _("Services have been configured to not send mail.")); - else if (Anope::CurTime - u->lastmail < Config->MailDelay) - u->SendMessage(service, _("Please wait \002%d\002 seconds and retry."), Config->MailDelay - Anope::CurTime - u->lastmail); - else if (nr->email.empty()) - u->SendMessage(service, _("E-mail for \002%s\002 is invalid."), nr->nick.c_str()); - else - { - u->lastmail = nr->lastmail = Anope::CurTime; - threadEngine.Start(new MailThread(nr->nick, nr->email, subject, message)); - return true; - } - - return false; -} - bool Mail(User *u, NickCore *nc, BotInfo *service, const Anope::string &subject, const Anope::string &message) { if (!u || !nc || !service || subject.empty() || message.empty()) |