]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockamsg.cpp
Register all commands, modes and extensions using AddService()
[user/henk/code/inspircd.git] / src / modules / m_blockamsg.cpp
index 5f0dbcdd4c3156d63c3d76023f7f325a41e219d5..be861447f36effcab132852d2f8e32836fe45387 100644 (file)
@@ -62,7 +62,7 @@ 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, sizeof(eventlist)/sizeof(Implementation));
        }