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_setidle.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_setidle.cpp')
| -rw-r--r-- | src/modules/m_setidle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp index eab34d76c..d0ef8f418 100644 --- a/src/modules/m_setidle.cpp +++ b/src/modules/m_setidle.cpp @@ -61,7 +61,7 @@ public: if (user->signon > user->idle_lastmsg) user->signon = user->idle_lastmsg; - ServerInstance->SNO.WriteToSnoMask('a', "{} used SETIDLE to set their idle time to {} seconds", user->nick, idle); + ServerInstance->SNO.WriteToSnoMask('a', "{} used SETIDLE to set their idle time to {}", user->nick, Duration::ToHuman(idle)); noterpl.SendIfCap(user, stdrplcap, this, "IDLE_TIME_SET", user->idle_lastmsg, "Idle time set."); return CmdResult::SUCCESS; } |
