]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonicks.cpp
m_dccallow Add config option to control max entries on a list
[user/henk/code/inspircd.git] / src / modules / m_nonicks.cpp
index 9bcc01b5915b33194d83c53a4da39f8eada64b1f..672a48f8d9bca45091d980ebb5290efb4f2a64ca 100644 (file)
@@ -41,9 +41,9 @@ class ModuleNoNickChange : public Module
        void init()
        {
                OnRehash(NULL);
-               ServerInstance->Modes->AddMode(&nn);
+               ServerInstance->Modules->AddService(nn);
                Implementation eventlist[] = { I_OnUserPreNick, I_On005Numeric, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 3);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        virtual ~ModuleNoNickChange()