diff options
Diffstat (limited to 'src/modules/m_operjoin.cpp')
| -rw-r--r-- | src/modules/m_operjoin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index 5f5ade036..0f5cf16ac 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -58,13 +58,15 @@ class ModuleOperjoin : public Module return; for (const auto& operchan : operChans) - if (ServerInstance->IsChannel(operchan)) + { + if (ServerInstance->Channels.IsChannel(operchan)) Channel::JoinUser(localuser, operchan, override); + } irc::commasepstream ss(localuser->oper->getConfig("autojoin")); for (std::string channame; ss.GetToken(channame); ) { - if (ServerInstance->IsChannel(channame)) + if (ServerInstance->Channels.IsChannel(channame)) Channel::JoinUser(localuser, channame, override); } } |
