summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')];