diff options
| author | 2022-10-17 00:13:30 +0100 | |
|---|---|---|
| committer | 2022-10-18 10:59:57 +0100 | |
| commit | 3d660b8e49f84d9d974621414183fd508726ac09 (patch) | |
| tree | 1e0268fa8cde42ec23d3f979a8ebb146a8d24ae0 /src/modules.cpp | |
| parent | Handle renamed modules when building compat link data. (diff) | |
| download | inspircd++-3d660b8e49f84d9d974621414183fd508726ac09.tar.gz inspircd++-3d660b8e49f84d9d974621414183fd508726ac09.tar.bz2 inspircd++-3d660b8e49f84d9d974621414183fd508726ac09.zip | |
Handle renamed modules when reading the modules to load.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 51149b8ef..308bbac0e 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -507,12 +507,8 @@ void ModuleManager::LoadAll() LoadCoreModules(servicemap); // Step 1: load all of the modules. - for (const auto& [_, tag] : ServerInstance->Config->ConfTags("module")) + for (const auto& shortname : ServerInstance->Config->GetModules()) { - const std::string shortname = tag->getString("name"); - if (shortname.empty()) - continue; // Skip malformed module tags. - // Skip modules which are already loaded. const std::string name = ExpandModName(shortname); if (Modules.find(name) != Modules.end()) |
