diff options
| author | 2016-12-30 18:51:56 +0100 | |
|---|---|---|
| committer | 2016-12-30 18:51:56 +0100 | |
| commit | 8db52f66a2ff587457c34889b31e7ef70876c7fa (patch) | |
| tree | 40f6b21ae462b3e083b1027a84def6be7c51f4d1 /src/users.cpp | |
| parent | Deduplicate nickname overruling code (diff) | |
Make all User::IsModeSet() methods const, accept const ModeHandler
Diffstat (limited to 'src/users.cpp')
| -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()]); |
