diff options
| author | 2026-07-10 11:15:52 +0100 | |
|---|---|---|
| committer | 2026-07-10 11:58:06 +0100 | |
| commit | 5f9c2b3c97ed1eeb19270fd3582b71ca8e1ca1ac (patch) | |
| tree | a6d3d38e04f30b0906141f49d4e0fd643be1d0d9 /src/commands.cpp | |
| parent | Convert TLS::IOHook::Status to an enum class. (diff) | |
Use saturating adds/subtracts when handling timestamps.
Diffstat (limited to 'src/commands.cpp')
| -rw-r--r-- | src/commands.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 25dcb09fb..51c7805ad 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -27,6 +27,7 @@ #include "inspircd.h" #include "numerichelper.h" #include "stringutils.h" +#include "timeutils.h" #include "utility/container.h" bool CommandParser::LoopCall(User* user, Command* handler, const CommandBase::Params& parameters, size_t splithere, size_t extra, bool usemax) @@ -229,7 +230,7 @@ void CommandParser::ProcessCommand(LocalUser* user, std::string& command, Comman } /* activity resets the ping pending timer */ - user->nextping = ServerInstance->Time() + user->GetClass()->pingtime; + user->nextping = Time::In(user->GetClass()->pingtime); switch (handler->access_needed) { case CmdAccess::NORMAL: |
