diff options
| author | 2021-04-06 20:06:18 +0100 | |
|---|---|---|
| committer | 2021-04-07 10:36:11 +0100 | |
| commit | 942fd2bcfd384a12c900999fe663202c87319a68 (patch) | |
| tree | c2bad1906af27afbc3c7d96c3e5ca3c27c83f090 /src/modules/m_operprefix.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Switch simple iterator loops to use range-based for loops.
Diffstat (limited to 'src/modules/m_operprefix.cpp')
| -rw-r--r-- | src/modules/m_operprefix.cpp | 4 |
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 |
