diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-12-30 18:51:56 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-12-30 18:51:56 +0100 |
commit | 8db52f66a2ff587457c34889b31e7ef70876c7fa (patch) | |
tree | 40f6b21ae462b3e083b1027a84def6be7c51f4d1 /src | |
parent | 0c3b041d1b36d1515913da5230399b379a802b81 (diff) |
Make all User::IsModeSet() methods const, accept const ModeHandler
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()]); |