aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd_kill.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-02-11 22:09:24 +0000
committerGravatar w00t2008-02-11 22:09:24 +0000
commita348bf1768b4de738a6f80639819e46e5de0b92b (patch)
tree9cae6a5782e2a3a48aa5563c265767e17aa1af69 /src/cmd_kill.cpp
parentMissed a bit. (diff)
Backport reworked culllist from 1.2: drastically improves performance when quitting a lot of users (e.g. on netsplit). I was originally not going to do this for 1.1, but it seems to perform well, and I can't break it under clone flooding - so in it goes. QA: please test this with lots of activity (connecting, disconnecting, ping timeouts, socket errors, anything you can throw at it)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8905 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_kill.cpp')
-rw-r--r--src/cmd_kill.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp
index 7f949e20d..2be6425da 100644
--- a/src/cmd_kill.cpp
+++ b/src/cmd_kill.cpp
@@ -91,19 +91,13 @@ CmdResult cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
*/
ServerInstance->SNO->WriteToSnoMask('k',"Local Kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]);
ServerInstance->Log(DEFAULT,"LOCAL KILL: %s :%s!%s!%s (%s)", u->nick, ServerInstance->Config->ServerName, user->dhost, user->nick, parameters[1]);
- /* Bug #419, make sure this message can only occur once even in the case of multiple KILL messages crossing the network, and change to show
- * hidekillsserver as source if possible
- */
- if (!u->muted)
- {
- u->Write(":%s KILL %s :%s!%s!%s (%s)", *ServerInstance->Config->HideKillsServer ? ServerInstance->Config->HideKillsServer : user->GetFullHost(),
- u->nick,
- ServerInstance->Config->ServerName,
- user->dhost,
- *ServerInstance->Config->HideKillsServer ? ServerInstance->Config->HideKillsServer : user->nick,
- parameters[1]);
- u->muted = true;
- }
+
+ u->Write(":%s KILL %s :%s!%s!%s (%s)", *ServerInstance->Config->HideKillsServer ? ServerInstance->Config->HideKillsServer : user->GetFullHost(),
+ u->nick,
+ ServerInstance->Config->ServerName,
+ user->dhost,
+ *ServerInstance->Config->HideKillsServer ? ServerInstance->Config->HideKillsServer : user->nick,
+ parameters[1]);
}
// send the quit out