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.cpp11
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;