]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonotice.cpp
m_callerid Fix memory leak in CallerIDExtInfo::free()
[user/henk/code/inspircd.git] / src / modules / m_nonotice.cpp
index c1f8bca7728a18c8e1b6da51120ffd71b0add369..d95ea8b8a4cf58f2bb91080f756a94ed989c2433 100644 (file)
@@ -41,8 +41,7 @@ class ModuleNoNotice : public Module
 
        void init()
        {
-               if (!ServerInstance->Modes->AddMode(&nt))
-                       throw ModuleException("Could not add new modes!");
+               ServerInstance->Modules->AddService(nt);
                Implementation eventlist[] = { I_OnUserPreNotice, I_On005Numeric };
                ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }