about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-26 19:58:48 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-26 19:58:48 +0000
commit855c6c0a53bd609cf7c8267acf7025918c9ee5bb (patch)
tree91e2b5052f35fc71d084323087a0d029ef529c0f /src/game/client
parent8fe68662ddc56e5429acd74c31a503e5c8505c55 (diff)
downloadzcatch-855c6c0a53bd609cf7c8267acf7025918c9ee5bb.tar.gz
zcatch-855c6c0a53bd609cf7c8267acf7025918c9ee5bb.zip
fixed so that you can't send empty lines
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/game_client.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp
index aab0950a..fccd11ed 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -1165,10 +1165,13 @@ void modc_render()
 			if(chat_active)
 			{
 				// send message
-				msg_pack_start(MSG_SAY, MSGFLAG_VITAL);
-				msg_pack_string(chat_input, 512);
-				msg_pack_end();
-				client_send_msg();
+				if(chat_input_len)
+				{
+					msg_pack_start(MSG_SAY, MSGFLAG_VITAL);
+					msg_pack_string(chat_input, 512);
+					msg_pack_end();
+					client_send_msg();
+				}
 			}
 			else
 			{