diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-01 14:10:48 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-01 14:10:48 +0000 |
commit | abec4e1e7c76cb8fa1b324d9ca743e7d687a9b09 (patch) | |
tree | f72a2a8e8086e7b5a87ab4d815c2a74cc72fd632 /src/userprocess.cpp | |
parent | 63a06ed2008d6128372b8e6dfc609d0d66f84293 (diff) |
InspIRCd: Now with 100% more boobies. Err, ping timeout message coolness.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5365 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r-- | src/userprocess.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 10da15292..49a5adcca 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -293,7 +293,9 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) // This user didn't answer the last ping, remove them if (!curr->lastping) { - GlobalGoners.AddItem(curr,"Ping timeout"); + time_t last_activity = curr->nping - curr->pingmax; + std::string boobies = "Ping timeout: " + ConvToStr(last_activity <= 0 ? curr->pingmax : last_activity) + " second(s)"; + GlobalGoners.AddItem(curr, boobies); curr->lastping = 1; curr->nping = TIME+curr->pingmax; continue; |