]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockamsg.cpp
Release 2.0.15
[user/henk/code/inspircd.git] / src / modules / m_blockamsg.cpp
index b0001574a0dfee2bd5360371d3c4a76d091ea60a..be861447f36effcab132852d2f8e32836fe45387 100644 (file)
@@ -62,9 +62,9 @@ class ModuleBlockAmsg : public Module
        void init()
        {
                this->OnRehash(NULL);
-               ServerInstance->Extensions.Register(&blockamsg);
+               ServerInstance->Modules->AddService(blockamsg);
                Implementation eventlist[] = { I_OnRehash, I_OnPreCommand };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        virtual ~ModuleBlockAmsg()