From abba3ed1e60f6d5d1f0a69460dc864cd7b2c429a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 3 Mar 2025 14:47:35 +0000 Subject: Use Duration::ToHuman instead of seconds in various messages. --- src/modules/m_joinflood.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/m_joinflood.cpp') diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index f7ab1efbd..0c83abefc 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -28,6 +28,7 @@ #include "extension.h" #include "modules/server.h" #include "numerichelper.h" +#include "timeutils.h" // The number of seconds the channel will be closed for. static unsigned int duration; @@ -201,8 +202,8 @@ public: f->lock(); PrefixMode* pm = ServerInstance->Modes.FindNearestPrefixMode(notifyrank); - memb->chan->WriteNotice(INSP_FORMAT("This channel has been closed to new users for {} seconds because there have been more than {} joins in {} seconds.", - duration, f->joins, f->secs), pm ? pm->GetPrefix() : 0); + memb->chan->WriteNotice(INSP_FORMAT("This channel has been closed to new users for {} because there have been more than {} joins in {}.", + Duration::ToHuman(duration), f->joins, Duration::ToHuman(f->secs)), pm ? pm->GetPrefix() : 0); } } } -- cgit v1.3.1-10-gc9f91