summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_disable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp
index 9f08cc6b3..95fcd8b4c 100644
--- a/src/modules/m_disable.cpp
+++ b/src/modules/m_disable.cpp
@@ -55,7 +55,7 @@ class ModuleDisable : public Module
// Check that the mode actually exists.
ModeHandler* mh = ServerInstance->Modes->FindMode(chr, type);
- if (!chr)
+ if (!mh)
throw ModuleException(InspIRCd::Format("Nonexistent mode '%c' was specified in <disabled:%s> at %s",
chr, field.c_str(), tag->getTagLocation().c_str()));