summaryrefslogtreecommitdiff
path: root/src/modules/m_chancreate.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-10-12 04:31:01 +0200
committerattilamolnar <attilamolnar@hush.com>2012-10-13 16:13:12 +0200
commit272208502c426f5bb6abdb13b8986b686afbb904 (patch)
tree0f27dc7d65a70e2068fa0a0b79b69a7e9c75dedb /src/modules/m_chancreate.cpp
parent4857bf4771b7f0b21a0f8b78045ff2a1009e0aab (diff)
m_chancreate Fix snonotices not being sent when remote users create channels
Fixes #318
Diffstat (limited to 'src/modules/m_chancreate.cpp')
-rw-r--r--src/modules/m_chancreate.cpp11
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());
}
}
};