summaryrefslogtreecommitdiff
path: root/src/modules/m_exemptchanops.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/modules/m_exemptchanops.cpp
parent258a481bface1b98f93699d292805c11f0e6d898 (diff)
Fix harmless loop off-by-ones found by Moonlightning
Diffstat (limited to 'src/modules/m_exemptchanops.cpp')
-rw-r--r--src/modules/m_exemptchanops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp
index 9fac8e7ad..8d6d65af2 100644
--- a/src/modules/m_exemptchanops.cpp
+++ b/src/modules/m_exemptchanops.cpp
@@ -68,7 +68,7 @@ class ExemptHandler : public HandlerBase3<ModResult, User*, Channel*, const std:
{
if (mid.length() == 1)
return ServerInstance->Modes->FindMode(mid[0], MODETYPE_CHANNEL);
- for(char c='A'; c < 'z'; c++)
+ for(char c='A'; c <= 'z'; c++)
{
ModeHandler* mh = ServerInstance->Modes->FindMode(c, MODETYPE_CHANNEL);
if (mh && mh->name == mid)