From 178defb45ed40b6d9bfab5466d6ffeeecfa3fa44 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 4 Feb 2014 06:37:21 -0500 Subject: [PATCH] Fix ping timeout message seconds vs second --- src/usermanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usermanager.cpp b/src/usermanager.cpp index b5050d91a..5d428a15f 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -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; } -- 2.39.2