]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_maphide.cpp
Fixes found by removing User inheritance from StreamSocket
[user/henk/code/inspircd.git] / src / modules / m_maphide.cpp
index 4c9d0591f38905c5cf132560db6e488ea5ab378b..3b4135c35e116ec28e5eafcf1fb8e3df81cfe994 100644 (file)
@@ -20,9 +20,9 @@ class ModuleMapHide : public Module
        std::string url;
  public:
        ModuleMapHide()
-                       {
-               ServerInstance->Modules->Attach(I_OnPreCommand, this);
-               ServerInstance->Modules->Attach(I_OnRehash, this);
+       {
+               Implementation eventlist[] = { I_OnPreCommand, I_OnRehash };
+               ServerInstance->Modules->Attach(eventlist, this, 2);
                OnRehash(NULL);
        }
 
@@ -49,7 +49,7 @@ class ModuleMapHide : public Module
 
        virtual Version GetVersion()
        {
-               return Version("Hide /MAP and /LINKS in the same form as ircu (mostly useless)", VF_VENDOR, API_VERSION);
+               return Version("Hide /MAP and /LINKS in the same form as ircu (mostly useless)", VF_VENDOR);
        }
 };