]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_acl.cpp
m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice
[user/henk/code/inspircd.git] / src / modules / m_httpd_acl.cpp
index abbab1d872bfd267660d92a74795816705f37c40..ba8d140637e7cd68990bc6262a82cd972c30eaa9 100644 (file)
@@ -94,10 +94,11 @@ class ModuleHTTPAccessList : public Module
                }
        }
 
-       ModuleHTTPAccessList()  {
+       void init()
+       {
                ReadConfig();
                Implementation eventlist[] = { I_OnEvent };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        void BlockAccess(HTTPRequest* http, int returnval, const std::string &extraheaderkey = "", const std::string &extraheaderval="")