diff options
author | Robin Burchell <viroteck@viroteck.net> | 2012-04-18 00:17:05 -0700 |
---|---|---|
committer | Robin Burchell <viroteck@viroteck.net> | 2012-04-18 00:17:05 -0700 |
commit | d383ce9b72bf5c58bb0571998b282cf67cf7635c (patch) | |
tree | 6bdbe9857fb516d92549dc408317fdb372cb4c8e /src | |
parent | 2e338c93d1c2996d7ebc88006e9d66636b0b08b7 (diff) | |
parent | 435a2ab5a17d3eecd161b8dd587e75ee9d87e6a5 (diff) |
Merge pull request #70 from Shawn-Smith/insp20+chancreatefix
[2.0] Fixes the j/J snomask not working properly.
Diffstat (limited to 'src')
-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()); } } }; |