From 5e44188857ba733f72f3728f557f7f9bfe251602 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 8 Dec 2022 10:19:47 +0000 Subject: More const correctness work. --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index f700a7659..2ed275717 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -49,7 +49,7 @@ enum ClientProtocol::MessageList LocalUser::sendmsglist; -bool User::IsNoticeMaskSet(unsigned char sm) +bool User::IsNoticeMaskSet(unsigned char sm) const { if (!isalpha(sm)) return false; @@ -893,7 +893,7 @@ void User::WriteRemoteNumeric(const Numeric::Numeric& numeric) * Don't quote me on the maths as i am not a mathematician or computer scientist, * but i believe this algorithm is now x+(log y) maximum iterations instead. */ -bool User::SharesChannelWith(User* other) +bool User::SharesChannelWith(User* other) const { for (const auto* memb : chans) { -- cgit v1.3.1-10-gc9f91