summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-06-24 03:40:18 -0400
committerAdam <Adam@anope.org>2011-08-09 17:21:58 -0400
commit0c47383f8baac986f51151cc80b868e63a09de15 (patch)
treeb521f7fd15bb272e1cadeb09c9be6f8d56c6a3bf /src
parentfa9f6a34ce5869e190811438c12c95942383fbfb (diff)
Fixed mail delay time
(cherry picked from commit 3e9888092a7859dbf2c7b1cc6baffa192a007132)
Diffstat (limited to 'src')
-rw-r--r--src/mail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail.cpp b/src/mail.cpp
index 58a0ddac8..edd892bd0 100644
--- a/src/mail.cpp
+++ b/src/mail.cpp
@@ -45,7 +45,7 @@ bool Mail(User *u, NickCore *nc, BotInfo *service, const Anope::string &subject,
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);
+ u->SendMessage(service, _("Please wait \002%d\002 seconds and retry."), Config->MailDelay - (Anope::CurTime - u->lastmail));
else if (nc->email.empty())
u->SendMessage(service, _("E-mail for \002%s\002 is invalid."), nc->display.c_str());
else