]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_denychans.cpp
m_ssl_gnutls Call gnutls_transport_set_errno() on Windows only
[user/henk/code/inspircd.git] / src / modules / m_denychans.cpp
index 2b2b343a4f5d61b583d4f4d58f046e574ac53c93..e774e92c82d53844b0a380ea154e619abdcd7567 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)