From 3d660b8e49f84d9d974621414183fd508726ac09 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 17 Oct 2022 00:13:30 +0100 Subject: Handle renamed modules when reading the modules to load. --- src/modules.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules.cpp') 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()) -- cgit v1.3.1-10-gc9f91