aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_restrictchans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp
index 649135273..5b589442e 100644
--- a/src/modules/m_restrictchans.cpp
+++ b/src/modules/m_restrictchans.cpp
@@ -61,7 +61,7 @@ class ModuleRestrictChans : public Module
void ReadConfig(ConfigStatus& status) override
{
AllowChans newallows;
- for (auto& [_, tag] : ServerInstance->Config->ConfTags("allowchannel"))
+ for (const auto& [_, tag] : ServerInstance->Config->ConfTags("allowchannel"))
{
const std::string name = tag->getString("name");
if (name.empty())