aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_permchannels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_permchannels.cpp')
-rw-r--r--src/modules/m_permchannels.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index 8353a5b00..383b2ad07 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -198,10 +198,8 @@ public:
* Process config-defined list of permanent channels.
* -- w00t
*/
- ConfigTagList permchannels = ServerInstance->Config->ConfTags("permchannels");
- for (ConfigIter i = permchannels.first; i != permchannels.second; ++i)
+ for (auto& [_, tag] : ServerInstance->Config->ConfTags("permchannels"))
{
- ConfigTag* tag = i->second;
std::string channel = tag->getString("channel");
std::string modes = tag->getString("modes");