summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-17 10:23:19 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-17 10:23:19 +0000
commit35bbf9bb0100800111f5123e378d807bf87ad846 (patch)
treeca7ed03824642a5393210d84bcea1bb017dc4163 /src
parentb6e548d8dfb933d8329ea7aed2357c88ecaf2e79 (diff)
Fix an off-by-one error in User::GetModeLetters().
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
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)))