diff options
Diffstat (limited to 'src/cmd_kill.cpp')
-rw-r--r-- | src/cmd_kill.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp index fb5dba245..e2a8d8824 100644 --- a/src/cmd_kill.cpp +++ b/src/cmd_kill.cpp @@ -88,6 +88,9 @@ 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]); snprintf(killreason,MAXQUIT,"Killed (%s (%s))", user->nick, parameters[1]); userrec::QuitUser(ServerInstance, u, killreason); + + if (u == user) + return CMD_USER_DELETED; } } else |