X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodmanager_static.cpp;h=321bf520dd7833ff7f5448a65e893ed2b94792c3;hb=67de413cad88194972d55a8ff88464370890c5a9;hp=44c36919bbb606dd16f031fd9a97a237d2af19ba;hpb=50ecf259b61eb389559dc24a7c4af718c225ec8d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp index 44c36919b..321bf520d 100644 --- a/src/modmanager_static.cpp +++ b/src/modmanager_static.cpp @@ -102,6 +102,7 @@ bool ModuleManager::Load(const std::string& name, bool defer) } else { + AttachAll(mod); mod->init(); } } @@ -112,7 +113,7 @@ bool ModuleManager::Load(const std::string& name, bool defer) ServerInstance->Logs->Log("MODULE", LOG_DEFAULT, "Unable to load " + name + ": " + modexcept.GetReason()); return false; } - FOREACH_MOD(I_OnLoadModule,OnLoadModule(mod)); + FOREACH_MOD(OnLoadModule, (mod)); /* We give every module a chance to re-prioritize when we introduce a new one, * not just the one thats loading, as the new module could affect the preference * of others @@ -207,6 +208,7 @@ void ModuleManager::LoadAll() Module* mod = i->second; try { + AttachAll(mod); mod->init(); } catch (CoreException& modexcept)