- virtual ~ModuleDelayMsg();
- virtual Version GetVersion();
- void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent, bool created);
- void OnUserPart(User* user, Channel* channel, std::string &partmessage, bool &silent);
- void OnUserKick(User* source, User* user, Channel* chan, const std::string &reason, bool &silent);
- void OnCleanup(int target_type, void* item);
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(djm);
+ ServerInstance->Modules->AddService(djm.jointime);
+ Implementation eventlist[] = { I_OnUserJoin, I_OnUserPreMessage};
+ ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
+ }
+ Version GetVersion();
+ void OnUserJoin(Membership* memb, bool sync, bool created, CUList&);