diff options
| author | 2025-03-03 14:47:35 +0000 | |
|---|---|---|
| committer | 2025-03-03 14:47:35 +0000 | |
| commit | abba3ed1e60f6d5d1f0a69460dc864cd7b2c429a (patch) | |
| tree | c386956c13ea8089964b5eeb0436f81c70bd3d67 /src/modules/m_spanningtree/main.cpp | |
| parent | Add Duration::ToHuman and update messages to use it. (diff) | |
Use Duration::ToHuman instead of seconds in various messages.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |
