summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-01-28 21:54:49 +0000
committerPeter Powell <petpow@saberuk.com>2019-01-28 21:54:49 +0000
commitfd6b8bddfa69d87d04f24c3e6e5aa8629cd9b578 (patch)
treebea20affc6db1523928d4ad30c1690d02980c3fb
parent3c71f24704a9846adb880c0e7185dcde2a8abea9 (diff)
Fix the prioritisation of OnRawMode in m_samode.
-rw-r--r--src/modules/m_samode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index db3345b98..634464ac2 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -124,8 +124,8 @@ class ModuleSaMode : public Module
void Prioritize() CXX11_OVERRIDE
{
- Module* disabled = ServerInstance->Modules->Find("m_disabled.so");
- ServerInstance->Modules->SetPriority(this, I_OnRawMode, PRIORITY_BEFORE, disabled);
+ Module* disable = ServerInstance->Modules->Find("m_disable.so");
+ ServerInstance->Modules->SetPriority(this, I_OnRawMode, PRIORITY_BEFORE, disable);
Module *override = ServerInstance->Modules->Find("m_override.so");
ServerInstance->Modules->SetPriority(this, I_OnPreMode, PRIORITY_BEFORE, override);