From ce801921e8d22b3647fcc207a8966252b06294ee Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 31 Dec 2025 18:18:25 +0000 Subject: Allow specifying a module name in SetPriority. --- src/modules/m_operprefix.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_operprefix.cpp') 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"); } }; -- cgit v1.3.1-10-gc9f91