]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix ping timeout message seconds vs second
authorAdam <Adam@anope.org>
Tue, 4 Feb 2014 11:37:21 +0000 (06:37 -0500)
committerAdam <Adam@anope.org>
Tue, 4 Feb 2014 11:37:21 +0000 (06:37 -0500)
src/usermanager.cpp

index b5050d91a56c4a17bda9be5cf9628b74741193be..5d428a15fe3883d05840499c993269a336e60796 100644 (file)
@@ -337,7 +337,7 @@ void UserManager::DoBackgroundUserStuff()
                                        if (!curr->lastping)
                                        {
                                                time_t time = ServerInstance->Time() - (curr->nping - curr->MyClass->GetPingTime());
-                                               const std::string message = "Ping timeout: " + ConvToStr(time) + (time == 1 ? " seconds" : " second");
+                                               const std::string message = "Ping timeout: " + ConvToStr(time) + (time != 1 ? " seconds" : " second");
                                                this->QuitUser(curr, message);
                                                continue;
                                        }