summaryrefslogtreecommitdiff
path: root/src/modules/m_chancreate.cpp
diff options
context:
space:
mode:
authorShawn Smith <ShawnSmith0828@gmail.com>2012-04-14 15:24:13 -0400
committerShawn Smith <ShawnSmith0828@gmail.com>2012-04-14 15:24:13 -0400
commit435a2ab5a17d3eecd161b8dd587e75ee9d87e6a5 (patch)
tree092dda9d97550486f6f8a49deb86ca576e50a655 /src/modules/m_chancreate.cpp
parentd6067d1d4a313222d251b4ad7f292f154afe5532 (diff)
Fixes the j snomask not working properly
Diffstat (limited to 'src/modules/m_chancreate.cpp')
-rw-r--r--src/modules/m_chancreate.cpp10
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());
}
}
};