aboutsummaryrefslogtreecommitdiff
path: root/modules/timedbans.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-03 14:58:58 +0000
committerGravatar Sadie Powell2025-03-03 14:58:58 +0000
commitd4d2293244c1845d2ca44708e82cad0bd38741e5 (patch)
treee6c03e062dd5b2dc13f215169ab11455a2b89d88 /modules/timedbans.cpp
parentMerge branch 'insp4' into master. (diff)
parentUse Duration::ToHuman instead of seconds in various messages. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/timedbans.cpp')
-rw-r--r--modules/timedbans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/timedbans.cpp b/modules/timedbans.cpp
index 37e24ba77..7709e861f 100644
--- a/modules/timedbans.cpp
+++ b/modules/timedbans.cpp
@@ -152,7 +152,7 @@ public:
if (sendnotice)
{
const std::string message = FMT::format("Timed ban {} added by {} on {} lasting for {}.",
- mask, user->nick, channel->name, Duration::ToString(duration));
+ mask, user->nick, channel->name, Duration::ToHuman(duration));
// If halfop is loaded, send notice to halfops and above, otherwise send to ops and above
PrefixMode* mh = ServerInstance->Modes.FindNearestPrefixMode(HALFOP_VALUE);