X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_blockamsg.cpp;h=be861447f36effcab132852d2f8e32836fe45387;hb=382662a8a4ae5c501b096643cb8f09d2d9d084d0;hp=5f0dbcdd4c3156d63c3d76023f7f325a41e219d5;hpb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index 5f0dbcdd4..be861447f 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -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)); }