summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_denychans.cpp11
1 files changed, 10 insertions, 1 deletions
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)