From 272208502c426f5bb6abdb13b8986b686afbb904 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Fri, 12 Oct 2012 04:31:01 +0200 Subject: m_chancreate Fix snonotices not being sent when remote users create channels Fixes #318 --- src/modules/m_chancreate.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/modules/m_chancreate.cpp') diff --git a/src/modules/m_chancreate.cpp b/src/modules/m_chancreate.cpp index 48f60a8d9..833d6a774 100644 --- a/src/modules/m_chancreate.cpp +++ b/src/modules/m_chancreate.cpp @@ -42,16 +42,9 @@ class ModuleChanCreate : public Module void OnUserJoin(Membership* memb, bool sync, bool created, CUList& except) { - if (created) + if ((created) && (IS_LOCAL(memb->user))) { - 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()); + ServerInstance->SNO->WriteGlobalSno('j', "Channel %s created by %s", memb->chan->name.c_str(), memb->user->GetFullRealHost().c_str()); } } }; -- cgit v1.2.3