Implementation eventlist[] = { I_OnUserJoin };
ServerInstance->Modules->Attach(eventlist, this, 1);
}
-
+
virtual ~ModuleChanCreate()
{
ServerInstance->SNO->DisableSnomask('j');
}
-
+
virtual Version GetVersion()
{
- return Version(1,2,0,0,VF_VENDOR,API_VERSION);
+ return Version("$Id$",VF_VENDOR,API_VERSION);
}
-
+
virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent)
{
- if (channel->GetUserCounter() == 1)
- ServerInstance->SNO->WriteToSnoMask('j', "Channel %s created by %s!%s@%s", channel->name, user->nick.c_str(), user->ident.c_str(), user->host.c_str());
+ if (channel->GetUserCounter() == 1 && !channel->IsModeSet('P'))
+ ServerInstance->SNO->WriteToSnoMask('j', "Channel %s created by %s!%s@%s", channel->name.c_str(), user->nick.c_str(), user->ident.c_str(), user->host.c_str());
}
};