diff options
| author | 2019-02-17 10:23:19 +0000 | |
|---|---|---|
| committer | 2019-02-17 10:23:19 +0000 | |
| commit | 35bbf9bb0100800111f5123e378d807bf87ad846 (patch) | |
| tree | ca7ed03824642a5393210d84bcea1bb017dc4163 /src/users.cpp | |
| parent | ircv3_chghost: also send the CHGHOST message to the modified user. (diff) | |
| download | inspircd++-35bbf9bb0100800111f5123e378d807bf87ad846.tar.gz inspircd++-35bbf9bb0100800111f5123e378d807bf87ad846.tar.bz2 inspircd++-35bbf9bb0100800111f5123e378d807bf87ad846.zip | |
Fix an off-by-one error in User::GetModeLetters().
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index cf676d2dc..3a6ddbc0f 100644 --- 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))) |
