]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_maphide.cpp
Register a few extensions that weren't registered
[user/henk/code/inspircd.git] / src / modules / m_maphide.cpp
index f3f4725191ffd919888b5acb6948deba945a9245..d9e58ca48ad90ade6c626c8bb57b1eec5d9d90b5 100644 (file)
@@ -25,10 +25,10 @@ class ModuleMapHide : public Module
 {
        std::string url;
  public:
-       ModuleMapHide()
+       void init()
        {
                Implementation eventlist[] = { I_OnPreCommand, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
                OnRehash(NULL);
        }