diff options
| author | 2026-03-08 20:20:58 +0000 | |
|---|---|---|
| committer | 2026-03-08 20:20:58 +0000 | |
| commit | fa3c7849d3ab085cdb31ea2fa846436d7ed5f642 (patch) | |
| tree | 673527fc066b92d02ef109f503805abb2c4d9ffc /modules/realnameban.cpp | |
| parent | Fix various minor Doxygen issues. (diff) | |
Make the ban checking functions able to check any list mode.
Diffstat (limited to 'modules/realnameban.cpp')
| -rw-r--r-- | modules/realnameban.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/realnameban.cpp b/modules/realnameban.cpp index 078524dfe..3ec89c143 100644 --- a/modules/realnameban.cpp +++ b/modules/realnameban.cpp @@ -34,7 +34,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 { // Check that the user actually specified a real name. const size_t divider = text.find('+', 1); @@ -42,7 +42,7 @@ public: return false; // Check whether the user's mask matches. - if (!channel->CheckBan(user, text.substr(0, divider), config.match_real_mask)) + if (!config.next_match(lm, user, channel, text.substr(0, divider), config)) return false; // Check whether the user's real name matches. @@ -59,7 +59,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 { return InspIRCd::Match(user->GetRealName(), text); } |
