X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspircd.cpp;h=9523e13ca0c5abfa7f522506fef9d7c7445a95c9;hb=878e437589ee448bc2e87200890cbd446accfc68;hp=4d7c933c6c53a9e133f134b8cce71f900e3b3e3c;hpb=ee10c76ebbf3a31012b637d744c3d87493a806c3;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4d7c933c6..9523e13ca 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2480,6 +2480,7 @@ bool UnloadModule(const char* filename) snprintf(MODERR,MAXBUF,"Module not unloadable (marked static)"); return false; } + FOREACH_MOD OnUnloadModule(modules[j],module_names[j]); // found the module log(DEBUG,"Deleting module..."); erase_module(j); @@ -2541,6 +2542,7 @@ bool LoadModule(const char* filename) { Module* m = factory[MODCOUNT+1]->factory->CreateModule(); modules[MODCOUNT+1] = m; + FOREACH_MOD OnLoadModule(m,filename_str); /* save the module and the module's classfactory, if * this isnt done, random crashes can occur :/ */ module_names.push_back(filename);