aboutsummaryrefslogtreecommitdiff
path: root/src/game/ChatHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/ChatHandler.cpp')
-rw-r--r--src/game/ChatHandler.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/game/ChatHandler.cpp b/src/game/ChatHandler.cpp
index 0820c500ab6..398a871d946 100644
--- a/src/game/ChatHandler.cpp
+++ b/src/game/ChatHandler.cpp
@@ -499,21 +499,16 @@ void WorldSession::HandleMessagechatOpcode( WorldPacket & recv_data )
{
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_CITY) ||
- chn->HasFlag(CHANNEL_FLAG_LFG))
- {
- if(sWorld.getConfig(CONFIG_CHATLOG_SYSCHAN))
+ chn->HasFlag(CHANNEL_FLAG_LFG)) &&
+ sWorld.getConfig(CONFIG_CHATLOG_SYSCHAN))
sLog.outChat("[SYSCHAN] Player %s tells channel %s: %s",
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",
GetPlayer()->GetName(), chn->GetName().c_str(), msg.c_str());
- }
}
}
} break;