]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_stats.cpp
m_ldapoper Fix typo spotted by @lordsith49
[user/henk/code/inspircd.git] / src / modules / m_httpd_stats.cpp
index b1613d5a526c422378662292cc28018b7291b314..077bc4f2d88839996e5c26cbff7b29a043558084 100644 (file)
@@ -34,9 +34,10 @@ class ModuleHttpStats : public Module
 
  public:
 
-       ModuleHttpStats()       {
+       void init()
+       {
                Implementation eventlist[] = { I_OnEvent };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        std::string Sanitize(const std::string &str)