From 435a2ab5a17d3eecd161b8dd587e75ee9d87e6a5 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Sat, 14 Apr 2012 15:24:13 -0400 Subject: Fixes the j snomask not working properly --- src/modules/m_chancreate.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/modules/m_chancreate.cpp') 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()); } } }; -- cgit v1.2.3