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_shun.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_shun.cpp') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index af2a4dbf9..ec0ccae9d 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -191,8 +191,7 @@ public: void Prioritize() override { - Module* alias = ServerInstance->Modules.Find("alias"); - ServerInstance->Modules.SetPriority(this, I_OnPreCommand, PRIORITY_BEFORE, alias); + ServerInstance->Modules.SetPriority(this, I_OnPreCommand, PRIORITY_BEFORE, "alias"); } ModResult OnStats(Stats::Context& stats) override -- cgit v1.3.1-10-gc9f91