Don't broadcast CHANCREATE snotice if channel is +P, fixes second half of bug #565, thanks Aleksi for both of these

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9967 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-07-12 10:12:51 +00:00
parent 288f9406b5
commit 0de0e25586

View File

@ -40,7 +40,7 @@ class ModuleChanCreate : public Module
virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent)
{
if (channel->GetUserCounter() == 1)
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());
}
};