diff options
author | XTZGZoReX <none@none> | 2009-03-31 09:18:03 +0200 |
---|---|---|
committer | XTZGZoReX <none@none> | 2009-03-31 09:18:03 +0200 |
commit | 6f5efa3c7aa32c463fe0dae78a86a78f80cf1d1b (patch) | |
tree | 93e27901e71a2fa10f6d7c9a3f0cfd19047dbbee /src/game/ChatHandler.cpp | |
parent | ba99171d5b92176c8afd43fc7c6d2e4c287c4307 (diff) |
* Do not print chat logs to console. It will simply screw up console output.
* Fix a possible crash in if/else checks in channel chat logging.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ChatHandler.cpp')
-rw-r--r-- | src/game/ChatHandler.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/game/ChatHandler.cpp b/src/game/ChatHandler.cpp index 7c7a55b0ff1..0820c500ab6 100644 --- a/src/game/ChatHandler.cpp +++ b/src/game/ChatHandler.cpp @@ -503,12 +503,17 @@ void WorldSession::HandleMessagechatOpcode( WorldPacket & recv_data ) chn->HasFlag(CHANNEL_FLAG_GENERAL) || chn->HasFlag(CHANNEL_FLAG_CITY) || chn->HasFlag(CHANNEL_FLAG_LFG)) + { if(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)) + GetPlayer()->GetName(), chn->GetName().c_str(), msg.c_str()); + } + 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()); + GetPlayer()->GetName(), chn->GetName().c_str(), msg.c_str()); + } } } } break; |