X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_blockamsg.cpp;h=be861447f36effcab132852d2f8e32836fe45387;hb=7dd831383f7506e49f568d0684ee1ecb1f5dc90f;hp=b0001574a0dfee2bd5360371d3c4a76d091ea60a;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index b0001574a..be861447f 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -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()