From cd1d8b7f0f4922bc35a5ca3974993f0106431fc8 Mon Sep 17 00:00:00 2001 From: md-5 Date: Sun, 3 Aug 2014 18:52:44 +1000 Subject: [PATCH] Fix off by one in ping timeout. Been bugging me that users ping timeout at 121 rather than 120 seconds by default. --- src/usermanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 2dcee852c..52cb4989f 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -301,7 +301,7 @@ void UserManager::DoBackgroundUserStuff() switch (curr->registered) { case REG_ALL: - if (ServerInstance->Time() > curr->nping) + if (ServerInstance->Time() >= curr->nping) { // This user didn't answer the last ping, remove them if (!curr->lastping) -- 2.39.2