summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-04-21 10:46:38 +0100
committerPeter Powell <petpow@saberuk.com>2019-04-21 10:46:38 +0100
commite6e8364e8e2624ba7213a7bbc72b51a87e8bebec (patch)
tree5e231954aec9b5b49b60d58b9f8aa52020327b7e
parentb6935108cac7395565034db58d21b7a861133083 (diff)
HasModePermission: fix inverted condition.
-rw-r--r--src/users.cpp2
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')];