]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_servprotect.cpp
Switch <stdint.h> test to use a test file too.
[user/henk/code/inspircd.git] / src / modules / m_servprotect.cpp
index 4c04fb2923027b1fc75d6e5c8fd06c47c9df6796..b4f2b5bbd5ae5ba5a42ac78a9db2587e8a7c4ec9 100644 (file)
@@ -55,8 +55,7 @@ class ModuleServProtectMode : public Module
 
        void init()
        {
-               if (!ServerInstance->Modes->AddMode(&bm))
-                       throw ModuleException("Could not add new modes!");
+               ServerInstance->Modules->AddService(bm);
                Implementation eventlist[] = { I_OnWhois, I_OnKill, I_OnWhoisLine, I_OnRawMode, I_OnUserPreKick };
                ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }