X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_autoop.cpp;h=07dca6929fef2f9f2aa9006a051a59262941d7c6;hb=e59bb59ea29e73bf66139e9d5eab6d1b572e308d;hp=40a57d7c3cf7024c2ffd53ba4d508f573716601f;hpb=1debdd986a562c2dc4053c7ade8b6c5fdf567e73;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);