diff options
| author | 2026-07-10 11:15:52 +0100 | |
|---|---|---|
| committer | 2026-07-10 11:58:06 +0100 | |
| commit | 5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac (patch) | |
| tree | a6d3d38e04f30b0906141f49d4e0fd643be1d0d9 /modules/setidle.cpp | |
| parent | Convert TLS::IOHook::Status to an enum class. (diff) | |
Use saturating adds/subtracts when handling timestamps.
Diffstat (limited to 'modules/setidle.cpp')
| -rw-r--r-- | modules/setidle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setidle.cpp b/modules/setidle.cpp index 42c31cd1a..df5434e93 100644 --- a/modules/setidle.cpp +++ b/modules/setidle.cpp @@ -85,7 +85,7 @@ public: return CmdResult::FAILURE; } - ltarget->idle_lastmsg = (ServerInstance->Time() - idle); + ltarget->idle_lastmsg = Time::Ago(idle); // We cant have signon time shorter than our idle time! if (ltarget->signon > ltarget->idle_lastmsg) ltarget->signon = ltarget->idle_lastmsg; |
