inspircd

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

commit d5d1311145b5eb5dbf4efd12f73d48150b1f9689
parent 2cd6efcc64458c7b5c33529eb58fe00b7bc5e4ef
Author: Peter Powell <petpow@saberuk.com>
Date:   Fri, 19 Apr 2019 10:42:17 +0100

HasModePermission: use IsModeChar.

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

diff --git a/src/users.cpp b/src/users.cpp @@ -167,7 +167,8 @@ bool LocalUser::HasModePermission(const ModeHandler* mh) const return false; const unsigned char mode = mh->GetModeChar(); - if (mode < 'A' || mode > ('A' + 64)) return false; + if (ModeParser::IsModeChar(mode)) + return false; return ((mh->GetModeType() == MODETYPE_USER ? oper->AllowedUserModes : oper->AllowedChanModes))[(mode - 'A')];