diff options
| author | 2012-04-18 00:17:05 -0700 | |
|---|---|---|
| committer | 2012-04-18 00:17:05 -0700 | |
| commit | d383ce9b72bf5c58bb0571998b282cf67cf7635c (patch) | |
| tree | 6bdbe9857fb516d92549dc408317fdb372cb4c8e /src/modules | |
| parent | Merge pull request #68 from SaberUK/update-doxygen (diff) | |
| parent | Fixes the j snomask not working properly (diff) | |
Merge pull request #70 from Shawn-Smith/insp20+chancreatefix
[2.0] Fixes the j/J snomask not working properly.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_chancreate.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
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()); } } }; |
