diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 16:24:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-04 16:24:43 +0000 |
commit | 2282f5c9f52ae11901a3f1965e41df4a36a30424 (patch) | |
tree | 1531bd00c1755ed822f6fee8f029693c400e0179 | |
parent | 02ce802257b0c1213d4c54cce4cbbd0708db6919 (diff) |
Fix this to compile
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8500 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_auditorium.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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) |