inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit e6e8364e8e2624ba7213a7bbc72b51a87e8bebec
parent b6935108cac7395565034db58d21b7a861133083
Author: Peter Powell <petpow@saberuk.com>
Date:   Sun, 21 Apr 2019 10:46:38 +0100

HasModePermission: fix inverted condition.

Diffstat:
Msrc/users.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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')];