]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix exposing the opers hostname in KILL when using hidekills.
authorPeter Powell <petpow@saberuk.com>
Fri, 20 Mar 2015 14:13:12 +0000 (14:13 +0000)
committerPeter Powell <petpow@saberuk.com>
Fri, 20 Mar 2015 19:59:15 +0000 (19:59 +0000)
src/commands/cmd_kill.cpp

index 17c8a76a053479968f229916dd216ce69c9ab138..99ac39d42e4f2126f886db9c72d5645f156f6c15 100644 (file)
@@ -134,7 +134,7 @@ CmdResult CommandKill::Handle (const std::vector<std::string>& parameters, User
                                u->Write(":%s KILL %s :%s!%s!%s (%s)", ServerInstance->Config->HideKillsServer.empty() ? user->GetFullHost().c_str() : ServerInstance->Config->HideKillsServer.c_str(),
                                                u->nick.c_str(),
                                                ServerInstance->Config->ServerName.c_str(),
-                                               user->dhost.c_str(),
+                                               ServerInstance->Config->HideKillsServer.empty() ? user->dhost.c_str() : ServerInstance->Config->HideKillsServer.c_str(),
                                                ServerInstance->Config->HideKillsServer.empty() ? user->nick.c_str() : ServerInstance->Config->HideKillsServer.c_str(),
                                                parameters[1].c_str());
                        }