]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nokicks.cpp
Switch <stdint.h> test to use a test file too.
[user/henk/code/inspircd.git] / src / modules / m_nokicks.cpp
index a17e6eb35e92eb81474109bcadd6140341784fce..1f58a2e08b71a7663ef052acd14b89e92a2610b4 100644 (file)
@@ -42,8 +42,7 @@ class ModuleNoKicks : public Module
 
        void init()
        {
-               if (!ServerInstance->Modes->AddMode(&nk))
-                       throw ModuleException("Could not add new modes!");
+               ServerInstance->Modules->AddService(nk);
                Implementation eventlist[] = { I_OnUserPreKick, I_On005Numeric };
                ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }