mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
288f9406b5
commit
0de0e25586
@ -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());
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user