aboutsummaryrefslogtreecommitdiffstats
path: root/modules/account.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/account.cpp
parentFix various minor Doxygen issues. (diff)
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'modules/account.cpp')
-rw-r--r--modules/account.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/account.cpp b/modules/account.cpp
index 2b68513d8..1d6d416b2 100644
--- a/modules/account.cpp
+++ b/modules/account.cpp
@@ -139,7 +139,7 @@ public:
{
}
- bool IsMatch(User* user, Channel* channel, const std::string& text, const ExtBan::MatchConfig& config) override
+ bool IsMatch(ListModeBase* lm, User* user, Channel* channel, const std::string& text, const ExtBan::MatchConfig& config) override
{
const auto* nicks = accountapi.GetAccountNicks(user);
if (nicks)
@@ -169,10 +169,10 @@ public:
{
}
- bool IsMatch(User* user, Channel* channel, const std::string& text, const ExtBan::MatchConfig& config) override
+ bool IsMatch(ListModeBase* lm, User* user, Channel* channel, const std::string& text, const ExtBan::MatchConfig& config) override
{
const std::string* account = accountapi.GetAccountName(user);
- return !account && config.next_match(user, channel, text, config);
+ return !account && config.next_match(lm, user, channel, text, config);
}
};