]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hideoper.cpp
Release 2.0.15
[user/henk/code/inspircd.git] / src / modules / m_hideoper.cpp
index fe06ad8c69bee21564d2958881649527c4343d50..fbab9685f6c65b9909f997abf3f4829806a488aa 100644 (file)
@@ -45,10 +45,9 @@ class ModuleHideOper : public Module
 
        void init()
        {
-               if (!ServerInstance->Modes->AddMode(&hm))
-                       throw ModuleException("Could not add new modes!");
+               ServerInstance->Modules->AddService(hm);
                Implementation eventlist[] = { I_OnWhoisLine, I_OnSendWhoLine };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }