From 1909304dc0017f08996daff4acaf9cd3bcb32a95 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 7 May 2020 13:04:20 +0100 Subject: Allow disabling the COMMANDS command. --- src/modules/m_disable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_disable.cpp') diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index d8a048e3e..9f08cc6b3 100644 --- a/src/modules/m_disable.cpp +++ b/src/modules/m_disable.cpp @@ -93,8 +93,8 @@ class ModuleDisable : public Module throw ModuleException(InspIRCd::Format("Nonexistent command '%s' was specified in at %s", command.c_str(), tag->getTagLocation().c_str())); - // Prevent admins from disabling COMMANDS and MODULES for transparency reasons. - if (handler->name == "COMMANDS" || handler->name == "MODULES") + // Prevent admins from disabling MODULES for transparency reasons. + if (handler->name == "MODULES") continue; // Disable the command. -- cgit v1.3.1-10-gc9f91