summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authormd-5 <md-5@users.noreply.github.com>2014-08-03 18:52:44 +1000
committerAttila Molnar <attilamolnar@hush.com>2014-08-04 11:01:59 +0200
commitcd1d8b7f0f4922bc35a5ca3974993f0106431fc8 (patch)
treec981b7ab1c81c949de82f6ec66e16837a1f82610 /src/usermanager.cpp
parent92d00063f3f78d4e8832a58ebec28dcedb9fdc72 (diff)
Fix off by one in ping timeout.
Been bugging me that users ping timeout at 121 rather than 120 seconds by default.
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp2
1 files changed, 1 insertions, 1 deletions
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)