From 394414b7eb3eba8e1e7e429b6273c5a8f2e9dab9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 16 Feb 2010 20:32:43 +0000 Subject: 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 --- src/modmanager_static.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modmanager_static.cpp') 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::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 -- cgit v1.3.1-10-gc9f91