summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_oper/cmd_kill.cpp2
-rw-r--r--src/coremods/core_oper/core_oper.cpp1
-rw-r--r--src/coremods/core_oper/core_oper.h3
3 files changed, 5 insertions, 1 deletions
diff --git a/src/coremods/core_oper/cmd_kill.cpp b/src/coremods/core_oper/cmd_kill.cpp
index 1232ccb46..bdf08f194 100644
--- a/src/coremods/core_oper/cmd_kill.cpp
+++ b/src/coremods/core_oper/cmd_kill.cpp
@@ -106,7 +106,7 @@ CmdResult CommandKill::Handle(User* user, const Params& parameters)
killreason.assign(parameters[1], 0, ServerInstance->Config->Limits.MaxQuit);
}
- if ((!ServerInstance->Config->HideULineKills) || (!user->server->IsULine()))
+ if ((!hideuline) || (!user->server->IsULine()))
{
if (IS_LOCAL(user) && IS_LOCAL(target))
ServerInstance->SNO->WriteGlobalSno('k', "Local kill by %s: %s (%s)", user->nick.c_str(), target->GetFullRealHost().c_str(), parameters[1].c_str());
diff --git a/src/coremods/core_oper/core_oper.cpp b/src/coremods/core_oper/core_oper.cpp
index 0da1e1a3a..54814b589 100644
--- a/src/coremods/core_oper/core_oper.cpp
+++ b/src/coremods/core_oper/core_oper.cpp
@@ -50,6 +50,7 @@ class CoreModOper : public Module
{
ConfigTag* security = ServerInstance->Config->ConfValue("security");
cmdkill.hidenick = security->getString("hidekills");
+ cmdkill.hideuline = security->getBool("hideulinekills");
}
Version GetVersion() CXX11_OVERRIDE
diff --git a/src/coremods/core_oper/core_oper.h b/src/coremods/core_oper/core_oper.h
index d78f90a83..bdb1ae9ee 100644
--- a/src/coremods/core_oper/core_oper.h
+++ b/src/coremods/core_oper/core_oper.h
@@ -66,6 +66,9 @@ class CommandKill : public Command
/** Set to a non empty string to obfuscate nicknames prepended to a KILL. */
std::string hidenick;
+ /** Set to hide kills from clients of ulined servers in snotices. */
+ bool hideuline;
+
/** Constructor for kill.
*/
CommandKill(Module* parent);