From 5c73f165141b30d93309d25e1324bc0170eb4da5 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Mon, 2 Aug 2010 14:26:44 +0000 Subject: Made Q_ClearStr operate in place and renamed it to COM_strclr. Removed unused Q_HightlightStr function. Changed Q_ prefix on several functions to COM_ for consistency. Clear the message string before passing it to Cmd_ExecTrigger. --- source/sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/sv_main.c') diff --git a/source/sv_main.c b/source/sv_main.c index c7e3a40..9c8d2a0 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -705,7 +705,7 @@ static void SVC_DirectConnect( void ) { } s = Info_ValueForKey( info, "name" ); - if( Q_IsWhiteSpace( s ) ) { + if( COM_iswhite( s ) ) { SV_OobPrintf( "Please set your name before connecting.\n" ); Com_DPrintf( " rejected - empty name.\n" ); return; @@ -1665,7 +1665,7 @@ void SV_UpdateUserinfo( char *userinfo ) { } s = Info_ValueForKey( userinfo, "name" ); - if( Q_IsWhiteSpace( s ) ) { + if( COM_iswhite( s ) ) { if( sv_client->name[0] ) { SV_ClientCommand( sv_client, "set name \"%s\"\n", sv_client->name ); } else { -- cgit v1.2.3