aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-10-31 20:03:19 +0000
committerGravatar Sadie Powell2020-10-31 22:33:35 +0000
commit441bd151da733d32e194de6e4a1744ae273b83ee (patch)
tree74eb1ee2aef413185bf3906a17f1b2c27373e03a /src/modules.cpp
parentFix reading the <sslprofile> config. (diff)
Add stdalgo::iterator_range and switch config tag reading to use it.
This allows us to use range-based for loops which were not possible with the previous config tag system.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 70335ec28..898b894a1 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -477,10 +477,8 @@ void ModuleManager::LoadAll()
LoadCoreModules(servicemap);
// Step 1: load all of the modules.
- ConfigTagList tags = ServerInstance->Config->ConfTags("module");
- for (ConfigIter i = tags.first; i != tags.second; ++i)
+ for (auto& [_, tag] : ServerInstance->Config->ConfTags("module"))
{
- ConfigTag* tag = i->second;
std::string name = ExpandModName(tag->getString("name"));
this->NewServices = &servicemap[name];