]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonotice.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_nonotice.cpp
index 314a7c8fe13cd504db566cb3a47fe711539f9a87..258dcab0fb871d320e48079505ddb2e10770e1dd 100644 (file)
@@ -54,8 +54,10 @@ class ModuleNoNotice : public Module
        {
                
                nt = new NoNotice(ServerInstance);
-               if (!ServerInstance->AddMode(nt, 'T'))
+               if (!ServerInstance->AddMode(nt))
                        throw ModuleException("Could not add new modes!");
+               Implementation eventlist[] = { I_OnUserPreNotice };
+               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
        void Implements(char* List)