summaryrefslogtreecommitdiff
path: root/src/modules/m_chancreate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_chancreate.cpp')
-rw-r--r--src/modules/m_chancreate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_chancreate.cpp b/src/modules/m_chancreate.cpp
index eb1491bb6..c37ffd690 100644
--- a/src/modules/m_chancreate.cpp
+++ b/src/modules/m_chancreate.cpp
@@ -40,9 +40,9 @@ class ModuleChanCreate : public Module
}
- virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent)
+ virtual void OnUserJoin(User* user, Channel* channel, bool sync, bool &silent, bool created)
{
- if (channel->GetUserCounter() == 1 && !channel->IsModeSet('P'))
+ if (created)
{
if (IS_LOCAL(user))
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());