X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_denychans.cpp;h=77adf29bcdf1151ac35317fef437e5f3b85ea405;hb=193eac649066bda33e693baadce6bc40181008f0;hp=cc4172529c53e18ca29908fdbc86911858065344;hpb=4d3ab4c3a5651331879fb9ce3d1f86cef3d60595;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp index cc4172529..77adf29bc 100644 --- a/src/modules/m_denychans.cpp +++ b/src/modules/m_denychans.cpp @@ -120,9 +120,18 @@ class ModuleDenyChannels : public Module continue; // If the redirect channel is whitelisted then it is okay. + bool whitelisted = false; for (GoodChannels::const_iterator j = goodchans.begin(); j != goodchans.end(); ++j) + { if (InspIRCd::Match(badchan.redirect, *j)) - continue; + { + whitelisted = true; + break; + } + } + + if (whitelisted) + continue; // If the redirect channel is not blacklisted then it is okay. for (BadChannels::const_iterator j = badchans.begin(); j != badchans.end(); ++j)