diff options
author | Peter Powell <petpow@saberuk.com> | 2019-04-21 10:46:38 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-04-21 10:46:38 +0100 |
commit | e6e8364e8e2624ba7213a7bbc72b51a87e8bebec (patch) | |
tree | 5e231954aec9b5b49b60d58b9f8aa52020327b7e /src/users.cpp | |
parent | b6935108cac7395565034db58d21b7a861133083 (diff) |
HasModePermission: fix inverted condition.
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 0d5d2a7d7..56f9f5591 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -167,7 +167,7 @@ bool LocalUser::HasModePermission(const ModeHandler* mh) const return false; const unsigned char mode = mh->GetModeChar(); - if (ModeParser::IsModeChar(mode)) + if (!ModeParser::IsModeChar(mode)) return false; return ((mh->GetModeType() == MODETYPE_USER ? oper->AllowedUserModes : oper->AllowedChanModes))[(mode - 'A')]; |