diff options
Diffstat (limited to 'src/modules/m_operjoin.cpp')
| -rw-r--r-- | src/modules/m_operjoin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index 0aa62776c..5f5ade036 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -57,9 +57,9 @@ class ModuleOperjoin : public Module if (!localuser) return; - for (std::vector<std::string>::const_iterator i = operChans.begin(); i != operChans.end(); ++i) - if (ServerInstance->IsChannel(*i)) - Channel::JoinUser(localuser, *i, override); + for (const auto& operchan : operChans) + if (ServerInstance->IsChannel(operchan)) + Channel::JoinUser(localuser, operchan, override); irc::commasepstream ss(localuser->oper->getConfig("autojoin")); for (std::string channame; ss.GetToken(channame); ) |
