X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_operjoin.cpp;h=e890c3afb709ad36d627165a6d35c8ee0aa19e09;hb=3a01b55a118d4937b75541fbf385180f7106fa12;hp=faeeb8b55c8b64d9ef43b9b993b8cdcc6020a01c;hpb=4ab1c43c1eee708fc50a4808f714a731891b75e8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index faeeb8b55..e890c3afb 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -83,7 +83,7 @@ class ModuleOperjoin : public Module return; for (std::vector::const_iterator i = operChans.begin(); i != operChans.end(); ++i) - if (ServerInstance->IsChannel(*i, ServerInstance->Config->Limits.ChanMax)) + if (ServerInstance->IsChannel(*i)) Channel::JoinUser(localuser, *i, override); std::string chanList = localuser->oper->getConfig("autojoin"); @@ -93,7 +93,7 @@ class ModuleOperjoin : public Module tokenize(chanList, typechans); for (std::vector::const_iterator it = typechans.begin(); it != typechans.end(); ++it) { - if (ServerInstance->IsChannel(*it, ServerInstance->Config->Limits.ChanMax)) + if (ServerInstance->IsChannel(*it)) { Channel::JoinUser(localuser, *it, override); }