aboutsummaryrefslogtreecommitdiff
path: root/modules/silence.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-09 19:29:46 +0000
committerGravatar Sadie Powell2026-03-09 19:31:09 +0000
commite2a2890e94c70bf2247fa68804b4cf550ee7810e (patch)
tree6be7f1df26fb7c384587a5f5ade8b0d8eb6ba995 /modules/silence.cpp
parentReuse the ModResult variable in the redirect module. (diff)
Mark all acting extbans as MATCH_REQUIRE_CHANNEL.
This removes the need for special behaviour in the silence module.
Diffstat (limited to 'modules/silence.cpp')
-rw-r--r--modules/silence.cpp6
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;