aboutsummaryrefslogtreecommitdiff
path: root/modules/silence.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-08 20:20:58 +0000
committerGravatar Sadie Powell2026-03-08 20:20:58 +0000
commitfa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch)
tree673527fc066b92d02ef109f503805abb2c4d9ffc /modules/silence.cpp
parentFix various minor Doxygen issues. (diff)
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'modules/silence.cpp')
-rw-r--r--modules/silence.cpp4
1 files changed, 2 insertions, 2 deletions
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: