From f7e1f6ab256e2efa67d4e01dd15d45c1bcf6ce8f Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 3 Oct 2009 11:44:45 +0000 Subject: * (bug 3517) connect.menu isn't properly opened on connection * Partially revert 772 * Strip off trailing '\n' from server denial messages --- src/client/cl_main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client') diff --git a/src/client/cl_main.c b/src/client/cl_main.c index ae1044e2..326bc5f6 100644 --- a/src/client/cl_main.c +++ b/src/client/cl_main.c @@ -2013,7 +2013,12 @@ void CL_ConnectionlessPacket( netadr_t from, msg_t *msg ) { // echo request from server if ( !Q_stricmp(c, "print") ) { s = MSG_ReadString( msg ); + Q_strncpyz( clc.serverMessage, s, sizeof( clc.serverMessage ) ); + + while( clc.serverMessage[ strlen( clc.serverMessage ) - 1 ] == '\n' ) + clc.serverMessage[ strlen( clc.serverMessage ) - 1 ] = '\0'; + Com_Printf( "%s", s ); return; } -- cgit