diff options
| author | 2026-03-09 19:29:46 +0000 | |
|---|---|---|
| committer | 2026-03-09 19:31:09 +0000 | |
| commit | e2a2890e94c70bf2247fa68804b4cf550ee7810e (patch) | |
| tree | 6be7f1df26fb7c384587a5f5ade8b0d8eb6ba995 /modules/silence.cpp | |
| parent | Reuse 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.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; |
