diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-16 09:14:23 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-16 09:14:23 +0000 |
commit | 72fe978b29fa7d9fd7f8e9c2766c06ab1a0a8bc7 (patch) | |
tree | c870f41d2c416cfb8c298177480c58434a4ee990 /src/inspircd.cpp | |
parent | 32026e5b6f345be8bfeddde939e69eec6618fe6b (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/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 8b56706dd..9318a03fd 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -625,9 +625,6 @@ int InspIRCd::Run() */ if (TIME != OLDTIME) { - /* if any users were quit, take them out */ - this->GlobalCulls.Apply(); - if (TIME < OLDTIME) { WriteOpers("*** \002EH?!\002 -- Time is flowing BACKWARDS in this dimension! Clock drifted backwards %d secs.",abs(OLDTIME-TIME)); @@ -677,6 +674,9 @@ int InspIRCd::Run() */ this->SE->DispatchEvents(); + /* if any users were quit, take them out */ + this->GlobalCulls.Apply(); + /* If any inspsockets closed, remove them */ this->BufferedSocketCull(); |