]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix off by one in ping timeout.
authormd-5 <md-5@users.noreply.github.com>
Sun, 3 Aug 2014 08:52:44 +0000 (18:52 +1000)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 4 Aug 2014 09:01:59 +0000 (11:01 +0200)
Been bugging me that users ping timeout at 121 rather than 120 seconds by default.

src/usermanager.cpp

index 2dcee852c564f5d6aba3506abf6eee251d9f541c..52cb4989fbbaf199ff0eee1aa1718d27337e4aae 100644 (file)
@@ -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)