X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmodules.h;h=c938e6a9d0749f91e44ecb420ede9e40f5a400c9;hb=5544649cd2058ba6d30925e61d20ae4a0245c0fa;hp=3cf7802846f7cc6acd2e817d8b218a1c3e6805f8;hpb=00c0409dd47fe985abf0f8d32cd66c8ef81fe708;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/modules.h b/include/modules.h index 3cf780284..c938e6a9d 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1068,6 +1068,13 @@ class CoreExport ModuleManager : public fakederef */ ServiceList* NewServices; + /** Expands the name of a module by prepending "m_" and appending ".so". + * No-op if the name already has the ".so" extension. + * @param modname Module name to expand + * @return Module name starting with "m_" and ending with ".so" + */ + static std::string ExpandModName(const std::string& modname); + /** Simple, bog-standard, boring constructor. */ ModuleManager();