From: md-5 Date: Sun, 3 Aug 2014 08:52:44 +0000 (+1000) Subject: Fix off by one in ping timeout. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=cd1d8b7f0f4922bc35a5ca3974993f0106431fc8;p=user%2Fhenk%2Fcode%2Finspircd.git Fix off by one in ping timeout. Been bugging me that users ping timeout at 121 rather than 120 seconds by default. --- 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)