* Some changes to last commit. This must be the correct way.
--HG-- branch : trunk
This commit is contained in:
@@ -499,21 +499,16 @@ void WorldSession::HandleMessagechatOpcode( WorldPacket & recv_data )
|
|||||||
{
|
{
|
||||||
chn->Say(_player->GetGUID(),msg.c_str(),lang);
|
chn->Say(_player->GetGUID(),msg.c_str(),lang);
|
||||||
|
|
||||||
if(chn->HasFlag(CHANNEL_FLAG_TRADE) ||
|
if((chn->HasFlag(CHANNEL_FLAG_TRADE) ||
|
||||||
chn->HasFlag(CHANNEL_FLAG_GENERAL) ||
|
chn->HasFlag(CHANNEL_FLAG_GENERAL) ||
|
||||||
chn->HasFlag(CHANNEL_FLAG_CITY) ||
|
chn->HasFlag(CHANNEL_FLAG_CITY) ||
|
||||||
chn->HasFlag(CHANNEL_FLAG_LFG))
|
chn->HasFlag(CHANNEL_FLAG_LFG)) &&
|
||||||
{
|
sWorld.getConfig(CONFIG_CHATLOG_SYSCHAN))
|
||||||
if(sWorld.getConfig(CONFIG_CHATLOG_SYSCHAN))
|
|
||||||
sLog.outChat("[SYSCHAN] Player %s tells channel %s: %s",
|
sLog.outChat("[SYSCHAN] Player %s tells channel %s: %s",
|
||||||
GetPlayer()->GetName(), chn->GetName().c_str(), msg.c_str());
|
GetPlayer()->GetName(), chn->GetName().c_str(), msg.c_str());
|
||||||
}
|
else if(sWorld.getConfig(CONFIG_CHATLOG_CHANNEL))
|
||||||
else
|
|
||||||
{
|
|
||||||
if(sWorld.getConfig(CONFIG_CHATLOG_CHANNEL))
|
|
||||||
sLog.outChat("[CHANNEL] Player %s tells channel %s: %s",
|
sLog.outChat("[CHANNEL] Player %s tells channel %s: %s",
|
||||||
GetPlayer()->GetName(), chn->GetName().c_str(), msg.c_str());
|
GetPlayer()->GetName(), chn->GetName().c_str(), msg.c_str());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user