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_spanningtree/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree/main.cpp') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index c1e74d4c4..cf91fa7ec 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -30,6 +30,7 @@ #include "clientprotocolmsg.h" #include "iohook.h" #include "socket.h" +#include "timeutils.h" #include "xline.h" #include "commands.h" @@ -302,7 +303,8 @@ void ModuleSpanningTree::DoConnectTimeout(time_t curtime) } else if (curtime > s->age + (time_t)p.second) { - ServerInstance->SNO.WriteToSnoMask('l', "CONNECT: Error connecting \002{}\002 (timeout of {} seconds)", p.first, p.second); + ServerInstance->SNO.WriteToSnoMask('l', "CONNECT: Error connecting \002{}\002 (timeout of {})", + p.first, Duration::ToHuman(p.second)); Utils->timeoutlist.erase(me); s->Close(); } -- cgit v1.3.1-10-gc9f91