mirror of
https://github.com/anope/anope.git
synced 2026-07-04 19:53:13 +02:00
Fix various format string issues.
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ bool Mail::Send(User *u, NickCore *nc, BotInfo *service, const Anope::string &su
|
||||
if (!b->Get<bool>("usemail") || b->Get<const Anope::string>("sendfrom").empty())
|
||||
u->SendMessage(service, _("Services have been configured to not send mail."));
|
||||
else if (Anope::CurTime - u->lastmail < b->Get<time_t>("delay"))
|
||||
u->SendMessage(service, _("Please wait \002%d\002 seconds and retry."), b->Get<time_t>("delay") - (Anope::CurTime - u->lastmail));
|
||||
u->SendMessage(service, _("Please wait \002%lu\002 seconds and retry."), (unsigned long)b->Get<time_t>("delay") - (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
|
||||
|
||||
Reference in New Issue
Block a user