1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 14:36:39 +02:00

Use durations instead of seconds in waiting messages.

This commit is contained in:
Sadie Powell
2024-11-13 11:44:03 +00:00
parent 0dc65cc162
commit 4de59d61d8
6 changed files with 24 additions and 11 deletions
+2 -1
View File
@@ -157,7 +157,8 @@ public:
time_t send_delay = Config->GetModule("memoserv")->Get<time_t>("senddelay");
if (Config->GetModule(this->owner)->Get<bool>("memooper") && send_delay > 0 && u && u->lastmemosend + send_delay > Anope::CurTime)
{
source.Reply(_("Please wait %lu seconds before requesting a new vhost."), (unsigned long)send_delay);
auto waitperiod = (u->lastmemosend + send_delay) - Anope::CurTime;
source.Reply(_("Please wait %s before requesting a new vhost."), Anope::Duration(waitperiod, source.GetAccount()).c_str());
u->lastmemosend = Anope::CurTime;
return;
}