summaryrefslogtreecommitdiff
path: root/src/modules/m_disable.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-05-07 13:04:20 +0100
committerSadie Powell <sadie@witchery.services>2020-05-07 13:04:20 +0100
commit1909304dc0017f08996daff4acaf9cd3bcb32a95 (patch)
tree3fdc182a6a7f092101ce897c66a188f9d2e97cb5 /src/modules/m_disable.cpp
parentb4e90c68945c6d5a81da0d6355517f8f940bd5e5 (diff)
Allow disabling the COMMANDS command.
Diffstat (limited to 'src/modules/m_disable.cpp')
-rw-r--r--src/modules/m_disable.cpp4
1 files changed, 2 insertions, 2 deletions
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 <disabled:commands> 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.