diff options
Diffstat (limited to 'src/mail.cpp')
-rw-r--r-- | src/mail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mail.cpp b/src/mail.cpp index 1cfdd6c09..354c7e2e7 100644 --- a/src/mail.cpp +++ b/src/mail.cpp @@ -40,7 +40,7 @@ bool Mail(User *u, NickRequest *nr, const Anope::string &service, const Anope::s if (!Config->UseMail) notice_lang(service, u, MAIL_DISABLED); else if (t - u->lastmail < Config->MailDelay) - notice_lang(service, u, MAIL_DELAYED, t - u->lastmail); + notice_lang(service, u, MAIL_DELAYED, Config->MailDelay - t - u->lastmail); else if (nr->email.empty()) notice_lang(service, u, MAIL_INVALID, nr->nick.c_str()); else @@ -63,7 +63,7 @@ bool Mail(User *u, NickCore *nc, const Anope::string &service, const Anope::stri if (!Config->UseMail) notice_lang(service, u, MAIL_DISABLED); else if (t - u->lastmail < Config->MailDelay) - notice_lang(service, u, MAIL_DELAYED, t - u->lastmail); + notice_lang(service, u, MAIL_DELAYED, Config->MailDelay - t - u->lastmail); else if (nc->email.empty()) notice_lang(service, u, MAIL_INVALID, nc->display.c_str()); else |