aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_disable.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-05-19 20:35:00 +0100
committerGravatar Sadie Powell2020-05-19 20:37:32 +0100
commita721aaf90f480675d225ed80c9b9e1c9fbe51ec0 (patch)
tree7c523a3df722ea372bef2d3c0d30d01ceeb5c3f7 /src/modules/m_disable.cpp
parentReplace FileSystem::GetFileList with std::filesystem. (diff)
parentFix CallInit overriding the error from dlopen. (diff)
Merge branch 'insp3' into master.
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 e56a8295f..13ce99bc9 100644
--- a/src/modules/m_disable.cpp
+++ b/src/modules/m_disable.cpp
@@ -98,8 +98,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.