summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp2
-rw-r--r--src/modules/m_auditorium.cpp2
-rw-r--r--src/modules/m_banexception.cpp2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 3a916e8a6..cbfc3aeae 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -235,6 +235,8 @@ bool ModuleManager::SetPriority(Module* mod, PriorityState s)
{
for (size_t n = I_BEGIN + 1; n != I_END; ++n)
SetPriority(mod, (Implementation)n, s);
+
+ return true;
}
bool ModuleManager::SetPriority(Module* mod, Implementation i, PriorityState s, Module** modules, size_t sz)
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp
index 06aaf38e6..61c00c158 100644
--- a/src/modules/m_auditorium.cpp
+++ b/src/modules/m_auditorium.cpp
@@ -60,7 +60,7 @@ class ModuleAuditorium : public Module
OnRehash(NULL, "");
Implementation eventlist[] = { I_OnUserJoin, I_OnUserPart, I_OnUserKick, I_OnUserQuit, I_OnUserList, I_OnRehash };
- Me->Modules->Attach(eventlist, this, sizeof(eventlist));
+ Me->Modules->Attach(eventlist, this, 6);
}
virtual ~ModuleAuditorium()
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index b53c70a29..cacba3150 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -52,7 +52,7 @@ public:
//be->DoImplements(List);
Implementation list[] = { I_OnRehash, I_OnRequest, I_On005Numeric, I_OnCheckBan };
- Me->Modules->Attach(list, this, sizeof(list));
+ Me->Modules->Attach(list, this, 4);
}
virtual void On005Numeric(std::string &output)