summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-28 20:05:36 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:13 +0000
commitaffe24fa3b3cb08c396d94f9e88c404d26da7ddc (patch)
tree4052c9921445574a25beae4f6add474f0125fa63 /src
parent71ec66125597a42c10f9ce4ae67aed2b9a947c34 (diff)
* Fix a bug with command concatenation with commands entered from the chat ui
Diffstat (limited to 'src')
-rw-r--r--src/ui/ui_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 896d0ca7..a1423e86 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -3051,7 +3051,7 @@ static void UI_RunMenuScript( char **args )
else if( ui_chatCommands.integer && ( buffer[ 0 ] == '/' ||
buffer[ 0 ] == '\\' ) )
{
- trap_Cmd_ExecuteText( EXEC_APPEND, buffer + 1 );
+ trap_Cmd_ExecuteText( EXEC_APPEND, va( "%s\n", buffer + 1 ) );
}
else if( uiInfo.chatTeam )
trap_Cmd_ExecuteText( EXEC_APPEND, va( "say_team \"%s\"\n", buffer ) );