about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-17 01:50:50 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-17 01:50:50 +0000
commit29e616919e6aa107da2c4c81cea0b84201c5dd98 (patch)
tree5f209c333f62d2a70e8d82d933d57cac767cdc13 /src/game
parent5afd6b21b54a1ac8928dccedf89bcc001f0b131a (diff)
downloadzcatch-29e616919e6aa107da2c4c81cea0b84201c5dd98.tar.gz
zcatch-29e616919e6aa107da2c4c81cea0b84201c5dd98.zip
fixed client name in the chat log
Diffstat (limited to 'src/game')
-rw-r--r--src/game/client/gc_client.cpp5
-rw-r--r--src/game/client/gc_hooks.cpp1
2 files changed, 5 insertions, 1 deletions
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);
+	
 }
 
 
diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp
index 95c16e2c..d98cbfea 100644
--- a/src/game/client/gc_hooks.cpp
+++ b/src/game/client/gc_hooks.cpp
@@ -470,7 +470,6 @@ extern "C" void modc_message(int msg)
 		if(msg_unpack_error() || cid < -1 || cid >= MAX_CLIENTS)
 			return;
 			
-		dbg_msg("message", "chat cid=%d team=%d msg='%s'", cid, team, message);
 		chat_add_line(cid, team, message);
 
 		if(cid >= 0)