From 8db52f66a2ff587457c34889b31e7ef70876c7fa Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 30 Dec 2016 18:51:56 +0100 Subject: Make all User::IsModeSet() methods const, accept const ModeHandler --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 06a1c1149..90978a496 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -33,7 +33,7 @@ bool User::IsNoticeMaskSet(unsigned char sm) return (snomasks[sm-65]); } -bool User::IsModeSet(unsigned char m) +bool User::IsModeSet(unsigned char m) const { ModeHandler* mh = ServerInstance->Modes->FindMode(m, MODETYPE_USER); return (mh && modes[mh->GetId()]); -- cgit v1.2.3