inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit fd6b8bddfa69d87d04f24c3e6e5aa8629cd9b578
parent 3c71f24704a9846adb880c0e7185dcde2a8abea9
Author: Peter Powell <petpow@saberuk.com>
Date:   Mon, 28 Jan 2019 21:54:49 +0000

Fix the prioritisation of OnRawMode in m_samode.

Diffstat:
Msrc/modules/m_samode.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);