From 29e616919e6aa107da2c4c81cea0b84201c5dd98 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 17 Mar 2008 01:50:50 +0000 Subject: fixed client name in the chat log --- src/game/client/gc_client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game/client/gc_client.cpp') diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp index b1c1b54e..29582f2e 100644 --- a/src/game/client/gc_client.cpp +++ b/src/game/client/gc_client.cpp @@ -250,6 +250,11 @@ void chat_add_line(int client_id, int team, const char *line) str_copy(chat_lines[chat_current_line].name, client_datas[client_id].name, sizeof(chat_lines[chat_current_line].name)); str_format(chat_lines[chat_current_line].text, sizeof(chat_lines[chat_current_line].text), ": %s", line); } + + if(config.debug) + dbg_msg("message", "chat cid=%d team=%d line='%s'", client_id, team, line); + dbg_msg("chat", "%s%s", chat_lines[chat_current_line].name, chat_lines[chat_current_line].text); + } -- cgit 1.4.1