diff options
| author | 2025-03-02 14:15:02 +0000 | |
|---|---|---|
| committer | 2025-03-03 14:00:16 +0000 | |
| commit | 2102b065d4ed91c5199c1dececdec4e385657cfd (patch) | |
| tree | 344337bb5099dcbf3c0aba113d3ec07955ef00f9 /src/modules/m_timedbans.cpp | |
| parent | Add an 005 token to let clients know that fakelag is enabled. (diff) | |
Add Duration::ToHuman and update messages to use it.
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -rw-r--r-- | src/modules/m_timedbans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 39c6f32e9..b7e2727ba 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -152,7 +152,7 @@ public: if (sendnotice) { const std::string message = INSP_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); |
