diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 10:12:51 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-12 10:12:51 +0000 |
commit | 0de0e25586bf6153e682a05e1abdb43bc4ee16e4 (patch) | |
tree | 3307e01833b44c389be3b10e239bf97623281411 /src/modules | |
parent | 288f9406b57fd44af4480207faa1780226352b6d (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chancreate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chancreate.cpp b/src/modules/m_chancreate.cpp index 1b6ca6192..77896771e 100644 --- a/src/modules/m_chancreate.cpp +++ b/src/modules/m_chancreate.cpp @@ -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()); } }; |