summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 15:06:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-04 15:06:21 +0000
commitc0abad99489eb0ce0a52d98f9d6f76790a6a2db4 (patch)
tree33c4bc956458ad3af405d551e02030f4feed1b61 /src
parent7ae7ccb556416b2f12e41a65579719ab2a3e1ed5 (diff)
Add EventHandlers structure for Development/Hooking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8496 e03df62e-2008-0410-955e-edbf42e46eb7
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()