diff options
| author | 2013-08-04 14:36:14 +0200 | |
|---|---|---|
| committer | 2013-08-04 16:08:57 +0200 | |
| commit | d24619c012b34d5a3d4cfb93e7bea3ff3d5721e7 (patch) | |
| tree | 620eaaed0037f2992b5f75c9ef87c0082f9c909f /src/modmanager_dynamic.cpp | |
| parent | Change the syntax of FOREACH macros to be less dumb. (diff) | |
Automatically attach modules to events
Diffstat (limited to 'src/modmanager_dynamic.cpp')
| -rw-r--r-- | src/modmanager_dynamic.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modmanager_dynamic.cpp b/src/modmanager_dynamic.cpp index a4a3ddb0b..92a7e0a32 100644 --- a/src/modmanager_dynamic.cpp +++ b/src/modmanager_dynamic.cpp @@ -74,6 +74,7 @@ bool ModuleManager::Load(const std::string& filename, bool defer) } else { + AttachAll(newmod); newmod->init(); Version v = newmod->GetVersion(); @@ -233,6 +234,7 @@ void ModuleManager::LoadAll() try { ServerInstance->Logs->Log("MODULE", LOG_DEBUG, "Initializing %s", i->first.c_str()); + AttachAll(mod); mod->init(); } catch (CoreException& modexcept) |
