]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hidechans.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_hidechans.cpp
index 2637968a9d9750097c929c3aca4efefa027bcc16..cb910aa4b89baa3bccdcdb34cf2bb0bc0951cf8c 100644 (file)
@@ -59,8 +59,10 @@ class ModuleHideChans : public Module
        {
                
                hm = new HideChans(ServerInstance);
-               if (!ServerInstance->AddMode(hm, 'I'))
+               if (!ServerInstance->AddMode(hm))
                        throw ModuleException("Could not add new modes!");
+               Implementation eventlist[] = { I_OnWhoisLine };
+               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
        void Implements(char* List)