diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-10-12 04:31:01 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-10-13 16:13:12 +0200 |
commit | 272208502c426f5bb6abdb13b8986b686afbb904 (patch) | |
tree | 0f27dc7d65a70e2068fa0a0b79b69a7e9c75dedb /src | |
parent | 4857bf4771b7f0b21a0f8b78045ff2a1009e0aab (diff) |
m_chancreate Fix snonotices not being sent when remote users create channels
Fixes #318
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chancreate.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
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()); } } }; |