summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-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());
}
}
};