diff options
| author | 2020-08-25 10:40:54 +0100 | |
|---|---|---|
| committer | 2020-08-25 10:46:42 +0100 | |
| commit | 73b4ac1b3a18f2ce95c27ac4cc502592bb63c1af (patch) | |
| tree | fe77105730204d3e6a1fd69bdf54933c16f91a26 /src/modules/m_disable.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| parent | Add a link to the packaging advice to the configure help. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_disable.cpp')
| -rw-r--r-- | src/modules/m_disable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index 13ce99bc9..7237fb350 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())); |
