diff options
| author | 2007-11-04 15:06:21 +0000 | |
|---|---|---|
| committer | 2007-11-04 15:06:21 +0000 | |
| commit | c0abad99489eb0ce0a52d98f9d6f76790a6a2db4 (patch) | |
| tree | 33c4bc956458ad3af405d551e02030f4feed1b61 /src/modules.cpp | |
| parent | Avoid code duplication, just call XLine::Apply() rather than retyping all tha... (diff) | |
| download | inspircd++-c0abad99489eb0ce0a52d98f9d6f76790a6a2db4.tar.gz inspircd++-c0abad99489eb0ce0a52d98f9d6f76790a6a2db4.tar.bz2 inspircd++-c0abad99489eb0ce0a52d98f9d6f76790a6a2db4.zip | |
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/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 2 |
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() |
