inspircd

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

commit 35bbf9bb0100800111f5123e378d807bf87ad846
parent b6e548d8dfb933d8329ea7aed2357c88ecaf2e79
Author: Peter Powell <petpow@saberuk.com>
Date:   Sun, 17 Feb 2019 10:23:19 +0000

Fix an off-by-one error in User::GetModeLetters().

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

diff --git a/src/users.cpp b/src/users.cpp @@ -46,7 +46,7 @@ std::string User::GetModeLetters(bool includeparams) const std::string ret(1, '+'); std::string params; - for (unsigned char i = 'A'; i < 'z'; i++) + for (unsigned char i = 'A'; i <= 'z'; i++) { const ModeHandler* const mh = ServerInstance->Modes.FindMode(i, MODETYPE_USER); if ((!mh) || (!IsModeSet(mh)))