diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/userprocess.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 1a5d7f2f7..7bc287265 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -293,9 +293,9 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) // This user didn't answer the last ping, remove them if (!curr->lastping) { - time_t last_activity = curr->nping - curr->pingmax; /* Everybody loves boobies. */ - std::string boobies = "Ping timeout: " + ConvToStr(last_activity <= 0 ? curr->pingmax : last_activity) + " second(s)"; + std::string time = ConvToStr(this->Time() - (curr->nping - curr->pingmax)); + std::string boobies = "Ping timeout: " + time + " second(s)"; GlobalGoners.AddItem(curr, boobies); curr->lastping = 1; curr->nping = TIME+curr->pingmax; |