diff options
Diffstat (limited to 'src/modules/m_chancreate.cpp')
-rw-r--r-- | src/modules/m_chancreate.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules/m_chancreate.cpp b/src/modules/m_chancreate.cpp index c4c28bc30..1d70a7b4d 100644 --- a/src/modules/m_chancreate.cpp +++ b/src/modules/m_chancreate.cpp @@ -36,8 +36,14 @@ class ModuleChanCreate : public Module { if (created) { - ServerInstance->SNO->WriteToSnoMask(IS_LOCAL(memb->user) ? 'j' : 'J', "Channel %s created by %s!%s@%s", - memb->chan->name.c_str(), memb->user->nick.c_str(), memb->user->ident.c_str(), memb->user->host.c_str()); + if (IS_LOCAL(memb->user)) + ServerInstance->SNO->WriteToSnoMask('j', "Channel %s created by %s!%s@%s", + memb->chan->name.c_str(), memb->user->nick.c_str(), + memb->user->ident.c_str(), memb->user->host.c_str()); + else + ServerInstance->SNO->WriteGlobalSno('J', "Channel %s created by %s!%s@%s", + memb->chan->name.c_str(), memb->user->nick.c_str(), + memb->user->ident.c_str(), memb->user->host.c_str()); } } }; |