From f6bd92ab87208b104baba2eaa99236d0b03d8552 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Nov 2007 16:38:14 +0000 Subject: Again git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8506 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_delayjoin.cpp | 7 ++++--- 1 file 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() -- cgit v1.2.3