summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_delayjoin.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_delayjoin.cpp b/src/modules/m_delayjoin.cpp
index ef7d96f5a..d978921a1 100644
--- a/src/modules/m_delayjoin.cpp
+++ b/src/modules/m_delayjoin.cpp
@@ -75,10 +75,11 @@ class ModuleDelayJoin : public Module
DELETE(djm);
}
- Priority Prioritize()
+ void Prioritize()
{
- /* To ensure that we get priority over namesx for names list generation on +u channels */
- return (Priority)ServerInstance->Modules->PriorityBefore("m_namesx.so");
+ /* To ensure that we get priority over namesx for names list generation */
+ Module* namesx = ServerInstance->Modules->Find("m_namesx.so");
+ ServerInstance->Modules->SetPriority(this, I_OnUserList, PRIO_BEFORE, &namesx);
}
virtual Version GetVersion()