X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_exemptchanops.cpp;h=8d6d65af2329c050dff0fa4e6c319909da0731b7;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=c6dc2d75d963c79755a73c4a23655ef37fa5d21a;hpb=44f42a13de52c8025942ddab42f51feb36821782;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index c6dc2d75d..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) @@ -121,7 +121,7 @@ class ModuleExemptChanOps : public Module { ServerInstance->Modules->AddService(eh.ec); Implementation eventlist[] = { I_OnRehash, I_OnSyncChannel }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); ServerInstance->OnCheckExemption = &eh; OnRehash(NULL);