]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_exemptchanops.cpp
m_dccallow Validate tokens before use
[user/henk/code/inspircd.git] / src / modules / m_exemptchanops.cpp
index c6dc2d75d963c79755a73c4a23655ef37fa5d21a..8d6d65af2329c050dff0fa4e6c319909da0731b7 100644 (file)
@@ -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)
@@ -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);