]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_denychans.cpp
Update wiki links to use HTTPS and point to the correct pages.
[user/henk/code/inspircd.git] / src / modules / m_denychans.cpp
index 2b2b343a4f5d61b583d4f4d58f046e574ac53c93..39d9e0d34024103fc7caad894f8d295a59a592e7 100644 (file)
@@ -30,7 +30,7 @@ class ModuleDenyChannels : public Module
        void init()
        {
                Implementation eventlist[] = { I_OnUserPreJoin, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        virtual void OnRehash(User* user)
@@ -57,7 +57,7 @@ class ModuleDenyChannels : public Module
                                        if (InspIRCd::Match(redirect, j->second->getString("name")))
                                        {
                                                bool goodchan = false;
-                                               ConfigTagList goodchans = ServerInstance->Config->ConfTags("badchan");
+                                               ConfigTagList goodchans = ServerInstance->Config->ConfTags("goodchan");
                                                for (ConfigIter k = goodchans.first; k != goodchans.second; ++k)
                                                {
                                                        if (InspIRCd::Match(redirect, k->second->getString("name")))