]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nicklock.cpp
Fix these to use new hook system (u_listmode wasnt fixed yet)
[user/henk/code/inspircd.git] / src / modules / m_nicklock.cpp
index 6f2e94cd4033e596358e373de3e0d70774c34169..74625da38657fdf43aee9708265b55a00b760b77 100644 (file)
@@ -111,6 +111,8 @@ class ModuleNickLock : public Module
                cmd2 = new CommandNickunlock(ServerInstance);
                ServerInstance->AddCommand(cmd1);
                ServerInstance->AddCommand(cmd2);
+               Implementation eventlist[] = { I_OnUserPreNick, I_OnUserQuit, I_OnCleanup };
+               ServerInstance->Modules->Attach(eventlist, this, 3);
        }
        
        virtual ~ModuleNickLock()