mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Rename <security:hideulinekills> to <security:hideservicekills>.
This commit is contained in:
parent
bb35650b57
commit
589c4b80f4
@ -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
|
||||
|
@ -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());
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user