diff options
Diffstat (limited to 'src/modules')
-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) |