]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_disable.cpp
Fix the cloaking module on C++98 compilers.
[user/henk/code/inspircd.git] / src / modules / m_disable.cpp
index 9f08cc6b3e227d5c884c5915d590d9d26c5740e1..95fcd8b4cb1fe49c90f8905b9fc68dbe2409efef 100644 (file)
@@ -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()));