From 8f7cdd5b61112802973470e74a87da52ee064920 Mon Sep 17 00:00:00 2001 From: satmd Date: Sun, 1 Jun 2014 17:53:31 +0200 Subject: Fix harmless loop off-by-ones found by Moonlightning --- src/modules/m_exemptchanops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_exemptchanops.cpp') 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 HandlerBase3Modes->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) -- cgit v1.2.3