aboutsummaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-01 18:10:11 +0100
committerGravatar Sadie Powell2021-04-01 18:10:11 +0100
commitef24ec632da12f272eddcf9924eacde9260597a2 (patch)
tree1d9561525e174249c2776fae38ce6c757a17a901 /src/modules.cpp
parentImplement support for random spamtrap channels in the LIST output. (diff)
Constify variables within loops.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 3f57e6b68..5ff3b8041 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -488,7 +488,7 @@ void ModuleManager::LoadAll()
LoadCoreModules(servicemap);
// Step 1: load all of the modules.
- for (auto& [_, tag] : ServerInstance->Config->ConfTags("module"))
+ for (const auto& [_, tag] : ServerInstance->Config->ConfTags("module"))
{
const std::string shortname = tag->getString("name");
if (shortname.empty())