summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 7bc287265..cb204989d 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -294,8 +294,8 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME)
if (!curr->lastping)
{
/* Everybody loves boobies. */
- std::string time = ConvToStr(this->Time() - (curr->nping - curr->pingmax));
- std::string boobies = "Ping timeout: " + time + " second(s)";
+ time_t time = this->Time() - (curr->nping - curr->pingmax);
+ std::string boobies = "Ping timeout: " + ConvToStr(time) + " second" + (time > 1 ? "s" : "");
GlobalGoners.AddItem(curr, boobies);
curr->lastping = 1;
curr->nping = TIME+curr->pingmax;