summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-24 21:20:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-24 21:20:13 +0000
commitbb79b3b7a998634d8fb6c4e9462aff744a213f3e (patch)
treee24b2cf0aba71b07d810540460df23c560a14786 /src
parent7770edd7037180c4a49771beb89519874a650668 (diff)
Make kill hiding work properly locally
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7130 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/cmd_kill.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp
index 82ca97440..77fcfaa23 100644
--- a/src/cmd_kill.cpp
+++ b/src/cmd_kill.cpp
@@ -69,15 +69,14 @@ CmdResult cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
* There used to be a WriteCommonExcept() of the QUIT here. It seems to be unnecessary with QuitUser() right below, so it's gone.
* If it explodes painfully, put it back!
*/
-
- userrec::QuitUser(ServerInstance, u, killreason);
}
else
{
// local kill
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]);
- user->WriteTo(u, "KILL %s :%s!%s!%s (%s)", u->nick, ServerInstance->Config->ServerName, user->dhost, user->nick, parameters[1]);
+ user->WriteTo(u, "KILL %s :%s!%s!%s (%s)", *ServerInstance->Config->HideKillsServer ? ServerInstance->Config->HideKillsServer : u->nick,
+ ServerInstance->Config->ServerName, user->dhost, user->nick, parameters[1]);
}
// send the quit out