]> 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 6651f5362dd03b76286550a05c61c8b49c2b1bb6..a33b05c385bce660465ad18be343ad2d0515070e 100644 (file)
@@ -48,6 +48,8 @@ class ModuleServProtectMode : public Module
                bm = new ServProtectMode(ServerInstance);
                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)