summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 66f93e9d7..d9fca88cd 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -194,6 +194,8 @@ void Module::OnText(User*, void*, int, const std::string&, char, CUList&) { }
ModuleManager::ModuleManager(InspIRCd* Ins)
: ModCount(0), Instance(Ins)
{
+ for (int n = I_BEGIN + 1; n != I_END; ++n)
+ EventHandlers.push_back(std::list<Module*>());
}
ModuleManager::~ModuleManager()