From fabd86ab97171692f7b94277f5860f4bb6b74022 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 5 Jun 2023 14:29:24 +0100 Subject: Make XLine::Matches const. --- src/modules/m_rline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_rline.cpp') diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index ff953e825..a771823f6 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -48,7 +48,7 @@ public: regex = rxfactory->Create(regexs); } - bool Matches(User* u) override + bool Matches(User* u) const override { LocalUser* lu = IS_LOCAL(u); if (lu && lu->exempt) @@ -59,7 +59,7 @@ public: return (regex->IsMatch(host) || regex->IsMatch(ip)); } - bool Matches(const std::string& compare) override + bool Matches(const std::string& compare) const override { return regex->IsMatch(compare); } -- cgit v1.3.1-10-gc9f91