]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_servprotect.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_servprotect.cpp
index 852ad6d3f108c34b3cfcebc7d8bb8c36b23a9e18..a33b05c385bce660465ad18be343ad2d0515070e 100644 (file)
@@ -46,8 +46,10 @@ class ModuleServProtectMode : public Module
        {
                
                bm = new ServProtectMode(ServerInstance);
-               if (!ServerInstance->AddMode(bm, 'k'))
+               if (!ServerInstance->AddMode(bm))
                        throw ModuleException("Could not add new modes!");
+               Implementation eventlist[] = { I_OnWhois, I_OnKill, I_OnWhoisLine };
+               ServerInstance->Modules->Attach(eventlist, this, 3);
        }
 
        void Implements(char* List)