aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands.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/commands.cpp
parentConvert 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.cpp3
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: