diff options
author | Peter Powell <petpow@saberuk.com> | 2018-10-18 10:54:06 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-10-18 10:59:52 +0100 |
commit | 98a80a730e21c6711d8ac14b16aaf6aad50da6c7 (patch) | |
tree | c672c5879ba763ba3b3d8889b791151db3ac2858 | |
parent | 7498202cd661670ca8c615fe1001cbd30a83e29e (diff) |
Fix unregistered user modes thinking they are enabled.
-rw-r--r-- | include/users.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h index e8f5399e8..4aed944ee 100644 --- a/include/users.h +++ b/include/users.h @@ -916,7 +916,7 @@ inline FakeUser* IS_SERVER(User* u) inline bool User::IsModeSet(const ModeHandler* mh) const { - return (modes[mh->GetId()]); + return ((mh->GetId() != ModeParser::MODEID_MAX) && (modes[mh->GetId()])); } inline bool User::IsModeSet(UserModeReference& moderef) const |