X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_autoop.cpp;h=07dca6929fef2f9f2aa9006a051a59262941d7c6;hb=a45db73920c6a3e51e5a19fe697f86dd185d72b4;hp=40a57d7c3cf7024c2ffd53ba4d508f573716601f;hpb=3af9c3f8950f864bcf9cdd56127cd4014827dece;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp index 40a57d7c3..07dca6929 100644 --- a/src/modules/m_autoop.cpp +++ b/src/modules/m_autoop.cpp @@ -84,12 +84,16 @@ class ModuleAutoOp : public Module public: ModuleAutoOp() : mh(this) + { + } + + void init() { ServerInstance->Modules->AddService(mh); mh.DoImplements(this); Implementation list[] = { I_OnPostJoin, }; - ServerInstance->Modules->Attach(list, this, 1); + ServerInstance->Modules->Attach(list, this, sizeof(list)/sizeof(Implementation)); } void OnPostJoin(Membership *memb) @@ -123,11 +127,6 @@ public: } } - void OnCleanup(int target_type, void* item) - { - mh.DoCleanup(target_type, item); - } - void OnSyncChannel(Channel* chan, Module* proto, void* opaque) { mh.DoSyncChannel(chan, proto, opaque);