about summary refs log tree commit diff
path: root/src/game/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/game_client.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/game/client/game_client.cpp b/src/game/client/game_client.cpp
index dcd1b191..eef3e692 100644
--- a/src/game/client/game_client.cpp
+++ b/src/game/client/game_client.cpp
@@ -1214,10 +1214,15 @@ void modc_render()
 				// send message
 				if(chat_input_len)
 				{
-					msg_pack_start(MSG_SAY, MSGFLAG_VITAL);
-					msg_pack_string(chat_input, 512);
-					msg_pack_end();
-					client_send_msg();
+					if(chat_input[0] == '/')
+						config_set(&chat_input[1]);
+					else
+					{
+						msg_pack_start(MSG_SAY, MSGFLAG_VITAL);
+						msg_pack_string(chat_input, 512);
+						msg_pack_end();
+						client_send_msg();
+					}
 				}
 			}
 			else