diff options
| author | 2021-04-01 18:10:11 +0100 | |
|---|---|---|
| committer | 2021-04-01 18:10:11 +0100 | |
| commit | ef24ec632da12f272eddcf9924eacde9260597a2 (patch) | |
| tree | 1d9561525e174249c2776fae38ce6c757a17a901 /src/modules/m_denychans.cpp | |
| parent | Implement support for random spamtrap channels in the LIST output. (diff) | |
Constify variables within loops.
Diffstat (limited to 'src/modules/m_denychans.cpp')
| -rw-r--r-- | src/modules/m_denychans.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index 76d34539d..2be1fffd7 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -72,7 +72,7 @@ class ModuleDenyChannels : public Module { GoodChannels goodchans; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("goodchan")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("goodchan")) { // Ensure that we have the <goodchan:name> parameter. const std::string name = tag->getString("name"); @@ -83,7 +83,7 @@ class ModuleDenyChannels : public Module } BadChannels badchans; - for (auto& [_, tag] : ServerInstance->Config->ConfTags("badchan")) + for (const auto& [_, tag] : ServerInstance->Config->ConfTags("badchan")) { // Ensure that we have the <badchan:name> parameter. const std::string name = tag->getString("name"); |
