]> 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 8633ddc059f5869e337422fee48530751c75e373..77896771ea7d048815f9fd4ee74ae163dabba439 100644 (file)
@@ -26,21 +26,21 @@ class ModuleChanCreate : public Module
                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);
        }
 
-       
+
        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());
        }
 };