From e2a2890e94c70bf2247fa68804b4cf550ee7810e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 9 Mar 2026 19:29:46 +0000 Subject: Mark all acting extbans as MATCH_REQUIRE_CHANNEL. This removes the need for special behaviour in the silence module. --- modules/silence.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'modules/silence.cpp') 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; -- cgit v1.3.1-10-gc9f91