class ModuleChanCreate : public Module
{
- private:
public:
- ModuleChanCreate()
- {
+ void init()
+ {
ServerInstance->SNO->EnableSnomask('j', "CHANCREATE");
Implementation eventlist[] = { I_OnUserJoin };
- ServerInstance->Modules->Attach(eventlist, this, 1);
+ ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
Version GetVersion()
return Version("Provides snomasks 'j' and 'J', to which notices about newly created channels are sent",VF_VENDOR);
}
-
void OnUserJoin(Membership* memb, bool sync, bool created, CUList& except)
{
if ((created) && (IS_LOCAL(memb->user)))