diff options
author | Shawn Smith <ShawnSmith0828@gmail.com> | 2012-04-14 15:24:13 -0400 |
---|---|---|
committer | Shawn Smith <ShawnSmith0828@gmail.com> | 2012-04-14 15:24:13 -0400 |
commit | 435a2ab5a17d3eecd161b8dd587e75ee9d87e6a5 (patch) | |
tree | 092dda9d97550486f6f8a49deb86ca576e50a655 /src/modules/m_chancreate.cpp | |
parent | d6067d1d4a313222d251b4ad7f292f154afe5532 (diff) |
Fixes the j snomask not working properly
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()); } } }; |