diff options
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r-- | src/userprocess.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index e79c879c2..36523e522 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -274,9 +274,10 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) { /* Everybody loves boobies. */ time_t time = this->Time(false) - (curr->nping - curr->pingmax); - std::string boobies = "Ping timeout: " + ConvToStr(time) + " second" + (time > 1 ? "s" : ""); + char message[MAXBUF]; + snprintf(message, MAXBUF, "Ping timeout: %d second%s", time, time > 1 ? "s" : ""); curr->muted = true; - GlobalCulls.AddItem(curr, boobies); + GlobalCulls.AddItem(curr, message); curr->lastping = 1; curr->nping = TIME+curr->pingmax; continue; |