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. --- src/users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 2acd5cf88..428640135 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -31,6 +31,7 @@ #include "inspircd.h" #include "clientprotocolevent.h" #include "modules/hash.h" +#include "timeutils.h" #include "xline.h" ClientProtocol::MessageList LocalUser::sendmsglist; @@ -592,7 +593,7 @@ void LocalUser::ChangeConnectClass(const std::shared_ptr& klass, b connectclass->use_count++; // Update the core user data that depends on connect class. - nextping = ServerInstance->Time() + klass->pingtime; + nextping = Time::In(klass->pingtime); uniqueusername = klass->uniqueusername; // Let modules know the class has been changed. -- cgit v1.3.1-10-gc9f91