summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2009-10-03 11:44:45 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:18 +0000
commitf7e1f6ab256e2efa67d4e01dd15d45c1bcf6ce8f (patch)
treed9e5bcbacba8dad00b09a8281ee1969fb085007b /src/client
parentb7723d58b1eac3cd7a542f55de8f361d84eaf45c (diff)
* (bug 3517) connect.menu isn't properly opened on connection
* Partially revert 772 * Strip off trailing '\n' from server denial messages
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cl_main.c5
1 files changed, 5 insertions, 0 deletions
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;
}