aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-07-10 11:15:52 +0100
committerGravatar Sadie Powell2026-07-10 11:58:06 +0100
commit5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac (patch)
treea6d3d38e04f30b0906141f49d4e0fd643be1d0d9 /src/users.cpp
parentConvert TLS::IOHook::Status to an enum class. (diff)
Use saturating adds/subtracts when handling timestamps.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 2 insertions, 1 deletions
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<ConnectClass>& 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.