diff -Nru ioquake3-r989.orig/code/server/sv_client.c ioquake3-r989/code/server/sv_client.c --- ioquake3-r989.orig/code/server/sv_client.c 2008-07-25 19:06:36.000000000 +0200 +++ ioquake3-r989/code/server/sv_client.c 2008-07-26 13:59:36.000000000 +0200 @@ -81,58 +81,8 @@ i = oldest; } - // if they are on a lan address, send the challengeResponse immediately - if ( Sys_IsLANAddress( from ) ) { - challenge->pingTime = svs.time; - NET_OutOfBandPrint( NS_SERVER, from, "challengeResponse %i", challenge->challenge ); - return; - } - - // look up the authorize server's IP - if ( !svs.authorizeAddress.ip[0] && svs.authorizeAddress.type != NA_BAD ) { - Com_Printf( "Resolving %s\n", AUTHORIZE_SERVER_NAME ); - if ( !NET_StringToAdr( AUTHORIZE_SERVER_NAME, &svs.authorizeAddress ) ) { - Com_Printf( "Couldn't resolve address\n" ); - return; - } - svs.authorizeAddress.port = BigShort( PORT_AUTHORIZE ); - Com_Printf( "%s resolved to %i.%i.%i.%i:%i\n", AUTHORIZE_SERVER_NAME, - svs.authorizeAddress.ip[0], svs.authorizeAddress.ip[1], - svs.authorizeAddress.ip[2], svs.authorizeAddress.ip[3], - BigShort( svs.authorizeAddress.port ) ); - } - - // if they have been challenging for a long time and we - // haven't heard anything from the authorize server, go ahead and - // let them in, assuming the id server is down - if ( svs.time - challenge->firstTime > AUTHORIZE_TIMEOUT ) { - Com_DPrintf( "authorize server timed out\n" ); - - challenge->pingTime = svs.time; - NET_OutOfBandPrint( NS_SERVER, challenge->adr, - "challengeResponse %i", challenge->challenge ); - return; - } - - // otherwise send their ip to the authorize server - if ( svs.authorizeAddress.type != NA_BAD ) { - cvar_t *fs; - char game[1024]; - - Com_DPrintf( "sending getIpAuthorize for %s\n", NET_AdrToString( from )); - - strcpy(game, BASEGAME); - fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO ); - if (fs && fs->string[0] != 0) { - strcpy(game, fs->string); - } - - // the 0 is for backwards compatibility with obsolete sv_allowanonymous flags - // getIpAuthorize 0 - NET_OutOfBandPrint( NS_SERVER, svs.authorizeAddress, - "getIpAuthorize %i %i.%i.%i.%i %s 0 %s", svs.challenges[i].challenge, - from.ip[0], from.ip[1], from.ip[2], from.ip[3], game, sv_strictAuth->string ); - } + challenge->pingTime = svs.time; + NET_OutOfBandPrint( NS_SERVER, from, "challengeResponse %i", challenge->challenge ); } /* @@ -1230,6 +1180,21 @@ } } +static void DisableGoggles (char *user_info) +{ + char *p; + + p = strstr (user_info, "\\gear\\"); + if (p == NULL) + return; + + for (p += 6; *p != 0 && *p != '\\'; p++) + { + if (*p == 'S') + *p = 'A'; + } +} + /* ================== @@ -1239,6 +1204,8 @@ static void SV_UpdateUserinfo_f( client_t *cl ) { Q_strncpyz( cl->userinfo, Cmd_Argv(1), sizeof(cl->userinfo) ); + DisableGoggles (cl->userinfo); + SV_UserinfoChanged( cl ); // call prog code to allow overrides VM_Call( gvm, GAME_CLIENT_USERINFO_CHANGED, cl - svs.clients ); diff -Nru ioquake3-r989.orig/Makefile.local ioquake3-r989/Makefile.local --- ioquake3-r989.orig/Makefile.local 1970-01-01 01:00:00.000000000 +0100 +++ ioquake3-r989/Makefile.local 2008-07-26 14:10:33.000000000 +0200 @@ -0,0 +1,8 @@ +COPYDIR = /home/urbanterror/server +BUILD_CLIENT = 0 +BUILD_CLIENT_SMP = 0 +BUILD_GAME_SO = 0 +BUILD_GAME_QVM = 0 +USE_LOCAL_HEADERS = 0 +USE_SDL = 0 +USE_OPENAL = 0