summaryrefslogtreecommitdiff
path: root/source/sv_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-08-02 14:26:44 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-08-02 14:26:44 +0000
commit5c73f165141b30d93309d25e1324bc0170eb4da5 (patch)
treed84f0c561cff6c9549f3f618f943f7fa15704c71 /source/sv_main.c
parent3c5ecddd3696c142bf730e808c8184511b525ae3 (diff)
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.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r--source/sv_main.c4
1 files changed, 2 insertions, 2 deletions
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 {