summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorsatmd <satmd@lain.at>2014-06-01 17:53:31 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-07 13:12:04 +0200
commit8f7cdd5b61112802973470e74a87da52ee064920 (patch)
tree266224f09579a1a527a12dfc9e11856721f7ca07 /src/users.cpp
parent258a481bface1b98f93699d292805c11f0e6d898 (diff)
Fix harmless loop off-by-ones found by Moonlightning
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 573d4db90..91db5200a 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -637,7 +637,7 @@ void OperInfo::init()
{
this->AllowedUserModes.set();
}
- else if (*c >= 'A' && *c < 'z')
+ else if (*c >= 'A' && *c <= 'z')
{
this->AllowedUserModes[*c - 'A'] = true;
}
@@ -650,7 +650,7 @@ void OperInfo::init()
{
this->AllowedChanModes.set();
}
- else if (*c >= 'A' && *c < 'z')
+ else if (*c >= 'A' && *c <= 'z')
{
this->AllowedChanModes[*c - 'A'] = true;
}