aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_banexception.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-06 20:06:18 +0100
committerGravatar Sadie Powell2021-04-07 10:36:11 +0100
commit942fd2bcfd384a12c900999fe663202c87319a68 (patch)
treec2bad1906af27afbc3c7d96c3e5ca3c27c83f090 /src/modules/m_banexception.cpp
parentMerge branch 'insp3' into master. (diff)
Switch simple iterator loops to use range-based for loops.
Diffstat (limited to 'src/modules/m_banexception.cpp')
-rw-r--r--src/modules/m_banexception.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index cacde7019..7c6a44d85 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -108,9 +108,9 @@ class ModuleBanException
return MOD_RES_PASSTHRU;
}
- for (ListModeBase::ModeList::iterator it = list->begin(); it != list->end(); it++)
+ for (const auto& entry : *list)
{
- if (chan->CheckBan(user, it->mask))
+ if (chan->CheckBan(user, entry.mask))
{
// They match an entry on the list, so let them in.
return MOD_RES_ALLOW;