diff options
Diffstat (limited to 'src/cmd_kill.cpp')
-rw-r--r-- | src/cmd_kill.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp index 01b49ae6b..bb5d47f12 100644 --- a/src/cmd_kill.cpp +++ b/src/cmd_kill.cpp @@ -48,7 +48,7 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user) if (!IS_LOCAL(u)) { // remote kill - ServerInstance->WriteOpers("*** Remote kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]); + ServerInstance->SNO->WriteToSnoMask('k',"Remote kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]); snprintf(killreason, MAXQUIT,"[%s] Killed (%s (%s))", ServerInstance->Config->ServerName, user->nick, parameters[1]); u->WriteCommonExcept("QUIT :%s", killreason); FOREACH_MOD(I_OnRemoteKill, OnRemoteKill(user, u, killreason)); @@ -73,7 +73,7 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user) // local kill 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]); - ServerInstance->WriteOpers("*** Local Kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]); + 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); } @@ -83,3 +83,4 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user) user->WriteServ( "401 %s %s :No such nick/channel", user->nick, parameters[0]); } } + |