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)
}
}
- 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);