summaryrefslogtreecommitdiff
path: root/src/modmanager_static.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-16 20:32:43 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-16 20:32:43 +0000
commit394414b7eb3eba8e1e7e429b6273c5a8f2e9dab9 (patch)
tree74979d917c19a1e443b7e254dd2d58805c022f3e /src/modmanager_static.cpp
parent0c1dff8c8d87a246adb93c835bd9f29e37c2b1ea (diff)
Defer module init on initial load for easier dependency checking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12477 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modmanager_static.cpp')
-rw-r--r--src/modmanager_static.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp
index d9ee07a25..ee9dc2107 100644
--- a/src/modmanager_static.cpp
+++ b/src/modmanager_static.cpp
@@ -58,7 +58,7 @@ class AllModule : public Module
MODULE_INIT(AllModule)
-bool ModuleManager::Load(const char* name)
+bool ModuleManager::Load(const std::string& name, bool)
{
for(std::vector<AllModuleList*>::iterator i = modlist->begin(); i != modlist->end(); ++i)
{
@@ -145,7 +145,6 @@ void ModuleManager::LoadAll()
c->ModuleDLLManager = NULL;
Modules[(**i).name] = c;
c->init();
- FOREACH_MOD(I_OnLoadModule,OnLoadModule(c));
}
catch (CoreException& modexcept)
{
@@ -177,7 +176,6 @@ void ModuleManager::LoadAll()
void ModuleManager::UnloadAll()
{
- // TODO don't really need this, who cares if we leak on exit?
}
#endif