]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonicks.cpp
Some more to fix still, modules probably wont load correctly atm
[user/henk/code/inspircd.git] / src / modules / m_nonicks.cpp
index 66d8d46019dd3ee825a1cafdb2eab8094e8512e0..05b07c44fd00b442e6b2765ea5586267be748f4b 100644 (file)
@@ -52,7 +52,9 @@ class ModuleNoNickChange : public Module
        {
                
                nn = new NoNicks(ServerInstance);
-               ServerInstance->AddMode(nn, 'N');
+               ServerInstance->AddMode(nn);
+               Implementation eventlist[] = { I_OnUserPreNick };
+               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
        
        virtual ~ModuleNoNickChange()