aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_operprefix.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-12-31 18:18:25 +0000
committerGravatar Sadie Powell2025-12-31 18:18:25 +0000
commitce801921e8d22b3647fcc207a8966252b06294ee (patch)
treeb07f6093251346f4516d8cd27680b7e97a204b33 /src/modules/m_operprefix.cpp
parentAvoid excessively long FJOINs when using the 1205 protocol. (diff)
downloadinspircd++-ce801921e8d22b3647fcc207a8966252b06294ee.tar.gz
inspircd++-ce801921e8d22b3647fcc207a8966252b06294ee.tar.bz2
inspircd++-ce801921e8d22b3647fcc207a8966252b06294ee.zip
Allow specifying a module name in SetPriority.
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r--src/modules/m_operprefix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index 896967f5c..d0c16492f 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -113,8 +113,7 @@ public:
void Prioritize() override
{
// m_opermodes may set +H on the oper to hide him, we don't want to set the oper prefix in that case
- Module* opermodes = ServerInstance->Modules.Find("opermodes");
- ServerInstance->Modules.SetPriority(this, I_OnPostOperLogin, PRIORITY_AFTER, opermodes);
+ ServerInstance->Modules.SetPriority(this, I_OnPostOperLogin, PRIORITY_AFTER, "opermodes");
}
};