diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-03-24 22:19:44 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-03-29 01:31:57 +0100 |
commit | 2ae964012effc5fab56a37bb5e0c4af62c3544ea (patch) | |
tree | 758817e79928484fa7d290f447951d6f34b30ba1 /src/commands/cmd_kill.cpp | |
parent | 3eeb85d3c5cb03566a3b07725fdf97c60a4d00ba (diff) |
cmd_kill Send snotice to servers when both the oper and the victim are on the same server
Diffstat (limited to 'src/commands/cmd_kill.cpp')
-rw-r--r-- | src/commands/cmd_kill.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/cmd_kill.cpp b/src/commands/cmd_kill.cpp index 463c7af38..17c8a76a0 100644 --- a/src/commands/cmd_kill.cpp +++ b/src/commands/cmd_kill.cpp @@ -121,7 +121,10 @@ CmdResult CommandKill::Handle (const std::vector<std::string>& parameters, User * XXX - this isn't entirely correct, servers A - B - C, oper on A, client on C. Oper kills client, A and B will get remote kill * snotices, C will get a local kill snotice. this isn't accurate, and needs fixing at some stage. -- w00t */ - ServerInstance->SNO->WriteToSnoMask('k',"Local Kill by %s: %s (%s)", user->nick.c_str(), u->GetFullRealHost().c_str(), parameters[1].c_str()); + if (IS_LOCAL(user)) + ServerInstance->SNO->WriteGlobalSno('k',"Local Kill by %s: %s (%s)", user->nick.c_str(), u->GetFullRealHost().c_str(), parameters[1].c_str()); + else + ServerInstance->SNO->WriteToSnoMask('k',"Local Kill by %s: %s (%s)", user->nick.c_str(), u->GetFullRealHost().c_str(), parameters[1].c_str()); ServerInstance->Logs->Log("KILL",DEFAULT,"LOCAL KILL: %s :%s!%s!%s (%s)", u->nick.c_str(), ServerInstance->Config->ServerName.c_str(), user->dhost.c_str(), user->nick.c_str(), parameters[1].c_str()); /* 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 |