From 2282f5c9f52ae11901a3f1965e41df4a36a30424 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Nov 2007 16:24:43 +0000 Subject: Fix this to compile git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8500 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_auditorium.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 173b13311..06aaf38e6 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -55,10 +55,11 @@ class ModuleAuditorium : public Module { aum = new AuditoriumMode(ServerInstance); if (!ServerInstance->AddMode(aum)) - throw ModuleException("Could not add new modes!") + throw ModuleException("Could not add new modes!"); + OnRehash(NULL, ""); - Implements eventlist[] = { I_OnUserJoin, I_OnUserPart, I_OnUserKick, I_OnUserQuit, I_OnUserList, I_OnRehash }; + Implementation eventlist[] = { I_OnUserJoin, I_OnUserPart, I_OnUserKick, I_OnUserQuit, I_OnUserList, I_OnRehash }; Me->Modules->Attach(eventlist, this, sizeof(eventlist)); } @@ -70,7 +71,8 @@ class ModuleAuditorium : public Module void Prioritize() { - ServerInstance->Modules->SetPriority(this, I_OnUserList, PRIO_BEFORE, &(ServerInstance->Modules->Find("m_namesx.so"))); + Module* namesx = ServerInstance->Modules->Find("m_namesx.so"); + ServerInstance->Modules->SetPriority(this, I_OnUserList, PRIO_BEFORE, &namesx); } virtual void OnRehash(User* user, const std::string ¶meter) -- cgit v1.2.3