summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-16 09:14:23 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-16 09:14:23 +0000
commit72fe978b29fa7d9fd7f8e9c2766c06ab1a0a8bc7 (patch)
treec870f41d2c416cfb8c298177480c58434a4ee990 /src/userprocess.cpp
parent32026e5b6f345be8bfeddde939e69eec6618fe6b (diff)
Two stage commit: don't set user->muted except in QuitUser (duplicate setting), also, change muted to drop all socket operations instead of just not reading the user's buffer if muted is set (no point wasting time - they're going away). Also revert culllist back to once per mainloop iteration now it is much cheaper than previously.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8716 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 7a1938d2c..5ec2581f7 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -190,7 +190,6 @@ void InspIRCd::DoBackgroundUserStuff()
* registration timeout -- didnt send USER/NICK/HOST
* in the time specified in their connection class.
*/
- curr->muted = true;
User::QuitUser(this, curr, "Registration timeout");
continue;
}
@@ -220,7 +219,6 @@ void InspIRCd::DoBackgroundUserStuff()
time_t time = this->Time(false) - (curr->nping - curr->MyClass->GetPingTime());
char message[MAXBUF];
snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : "");
- curr->muted = true;
curr->lastping = 1;
curr->nping = TIME + curr->MyClass->GetPingTime();
User::QuitUser(this, curr, message);