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/realnameban.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/realnameban.cpp') 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); } -- cgit v1.3.1-10-gc9f91