X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_httpd_stats.cpp;h=077bc4f2d88839996e5c26cbff7b29a043558084;hb=5a378e1b08ec69cb57f2e52899a5aa7b7424cc75;hp=b1613d5a526c422378662292cc28018b7291b314;hpb=46a39046196f55b52336e19662bb7bac85b731ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index b1613d5a5..077bc4f2d 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -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)