]> 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 c280174f52fca174555e474937e3fcd1515211ef..e774e92c82d53844b0a380ea154e619abdcd7567 100644 (file)
 class ModuleDenyChannels : public Module
 {
  public:
-       ModuleDenyChannels()    {
+       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)