diff options
| author | 2026-07-10 11:15:52 +0100 | |
|---|---|---|
| committer | 2026-07-10 11:58:06 +0100 | |
| commit | 5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac (patch) | |
| tree | a6d3d38e04f30b0906141f49d4e0fd643be1d0d9 /src/users.cpp | |
| parent | Convert 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.cpp | 3 |
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. |
