]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_denychans.cpp
Fix various cases of broken indentation.
[user/henk/code/inspircd.git] / src / modules / m_denychans.cpp
index cc4172529c53e18ca29908fdbc86911858065344..77adf29bcdf1151ac35317fef437e5f3b85ea405 100644 (file)
@@ -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)