diff options
| author | 2020-06-21 04:25:45 +0100 | |
|---|---|---|
| committer | 2021-05-08 15:31:50 +0100 | |
| commit | 0c750c060839f9018ca129bd7456184792ea0dc0 (patch) | |
| tree | 43aa8d0a593afa292e2922d2481b2349e0dc8dfd /src/modules/m_operjoin.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Move channel logic from InspIRCd to the new ChannelManager class.
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); } } |
