[2.0] Fixes the j/J snomask not working properly. #70

Merged
merged 1 commit into from Apr 18, 2012
Jump to file
+8 −2
Split
@@ -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());
}
}
};