diff options
| author | 2026-03-08 20:20:58 +0000 | |
|---|---|---|
| committer | 2026-03-08 20:20:58 +0000 | |
| commit | fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch) | |
| tree | 673527fc066b92d02ef109f503805abb2c4d9ffc /modules/account.cpp | |
| parent | Fix 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.cpp | 6 |
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); } }; |
