From 5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 10 Jul 2026 11:15:52 +0100 Subject: Use saturating adds/subtracts when handling timestamps. --- modules/setidle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/setidle.cpp') 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; -- cgit v1.3.1-10-gc9f91