aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_operprefix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_operprefix.cpp')
-rw-r--r--src/modules/m_operprefix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index 9cc9cdc7c..a32909241 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -97,8 +97,8 @@ class ModuleOperPrefixMode : public Module
{
Modes::ChangeList changelist;
changelist.push(&opm, add, user->nick);
- for (User::ChanList::iterator v = user->chans.begin(); v != user->chans.end(); v++)
- ServerInstance->Modes.Process(ServerInstance->FakeClient, (*v)->chan, NULL, changelist);
+ for (const auto* memb : user->chans)
+ ServerInstance->Modes.Process(ServerInstance->FakeClient, memb->chan, NULL, changelist);
}
void OnPostOper(User* user, const std::string& opername, const std::string& opertype) override