diff options
| -rw-r--r-- | src/game/client/game_client.cpp | 11 |
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 { |