Rename <security:hideulinekills> to <security:hideservicekills>.

This commit is contained in:
Sadie Powell 2021-01-30 13:23:19 +00:00
parent bb35650b57
commit 589c4b80f4
4 changed files with 6 additions and 6 deletions

View File

@ -753,8 +753,8 @@
# hidekills: If defined, replaces who executed a /KILL with a custom string.
hidekills=""
# hideulinekills: Hide kills from clients of ulined servers from server notices.
hideulinekills="yes"
# hideservicekills: Hide kills from clients of services servers from server notices.
hideservicekills="yes"
# hidesplits: If enabled, non-opers will not be able to see which
# servers split in a netsplit, they will only be able to see that one

View File

@ -112,7 +112,7 @@ CmdResult CommandKill::Handle(User* user, const Params& parameters)
killreason.assign(parameters[1], 0, ServerInstance->Config->Limits.MaxQuit);
}
if ((!hideuline) || (!user->server->IsULine()))
if ((!hideservicekills) || (!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());

View File

@ -50,7 +50,7 @@ class CoreModOper : public Module
{
auto security = ServerInstance->Config->ConfValue("security");
cmdkill.hidenick = security->getString("hidekills");
cmdkill.hideuline = security->getBool("hideulinekills");
cmdkill.hideservicekills = security->getBool("hideservicekills", security->getBool("hideulinekills"));
}
void OnPostOper(User* user, const std::string&, const std::string&) override

View File

@ -60,8 +60,8 @@ 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;
/** Set to hide kills from clients of services servers in snotices. */
bool hideservicekills;
/** Constructor for kill.
*/