From fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 8 Mar 2026 20:20:58 +0000 Subject: Make the ban checking functions able to check any list mode. --- modules/silence.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/silence.cpp') diff --git a/modules/silence.cpp b/modules/silence.cpp index 6e0b4af73..56245a95a 100644 --- a/modules/silence.cpp +++ b/modules/silence.cpp @@ -472,7 +472,7 @@ private: ExtBan::MatchConfig mconfig; mconfig.match_real_mask = ServerInstance->Config->BanRealMask; - mconfig.next_match = [this](auto* user, auto*, const auto& text, const auto& config) + mconfig.next_match = [this](auto* lm, auto* user, auto*, const auto& text, const auto& config) { return IsMatch(user, text, config); }; @@ -525,7 +525,7 @@ private: if (extban->GetMatchFlags() & ExtBan::MATCH_REQUIRE_CHANNEL) return InspIRCd::Match(source->GetMask(), pattern); - return extban->IsMatch(source, nullptr, value, config) != inverted; + return extban->IsMatch(nullptr, source, nullptr, value, config) != inverted; } public: -- cgit v1.3.1-10-gc9f91