diff options
Diffstat (limited to 'modules/silence.cpp')
| -rw-r--r-- | modules/silence.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/silence.cpp b/modules/silence.cpp index 56245a95a..54e7564b7 100644 --- a/modules/silence.cpp +++ b/modules/silence.cpp @@ -517,12 +517,8 @@ private: else extban = cmd.extbanmgr->FindName(name); - // It is formatted like an extban but isn't a matching extban. - if (!extban || extban->GetType() != ExtBan::Type::MATCHING) - return InspIRCd::Match(source->GetMask(), pattern); - // Not applicable for this use case. - if (extban->GetMatchFlags() & ExtBan::MATCH_REQUIRE_CHANNEL) + if (!extban || extban->GetMatchFlags() & ExtBan::MATCH_REQUIRE_CHANNEL) return InspIRCd::Match(source->GetMask(), pattern); return extban->IsMatch(nullptr, source, nullptr, value, config) != inverted; |
