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/command_parse.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/command_parse.cpp')
-rw-r--r-- | src/command_parse.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index d82f523db..82209015c 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -413,12 +413,10 @@ bool CommandParser::ProcessBuffer(std::string &buffer,User *user) if (buffer.length()) { - if (!user->muted) - { - ServerInstance->Log(DEBUG,"C[%d] I :%s %s",user->GetFd(), user->nick, buffer.c_str()); - return this->ProcessCommand(user,buffer); - } + ServerInstance->Log(DEBUG,"C[%d] I :%s %s",user->GetFd(), user->nick, buffer.c_str()); + return this->ProcessCommand(user,buffer); } + return true; } |