]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chancreate.cpp
Remove unneccessary temp value which caused a win32 problem by using uint32_t type.
[user/henk/code/inspircd.git] / src / modules / m_chancreate.cpp
index 1b6ca61924381541401f34ac480398548f3fba80..77896771ea7d048815f9fd4ee74ae163dabba439 100644 (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());
        }
 };