diff options
author | Peter Powell <petpow@saberuk.com> | 2018-10-01 16:31:36 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-10-01 17:26:22 +0100 |
commit | 9ddb9cc6584c1f595ebbf95cf1b3630984733b25 (patch) | |
tree | f60f01cb47a124c16518dc123ba99b8e7f025afa /src/coremods | |
parent | 7b6f7dcde5f077717a3bd665d269766a966243b0 (diff) |
Move <security:hideulinekills> into core_oper.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_oper/cmd_kill.cpp | 2 | ||||
-rw-r--r-- | src/coremods/core_oper/core_oper.cpp | 1 | ||||
-rw-r--r-- | src/coremods/core_oper/core_oper.h | 3 |
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); |