summaryrefslogtreecommitdiff
path: root/source/mvd_client.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-12-23 20:46:54 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-12-23 20:46:54 +0000
commitf1be065ea60bbb97f6d21477fc45e49bbb29cd71 (patch)
tree8807bcb0590abc3e1472a3b977c3d112498acd23 /source/mvd_client.c
parentb1fa1be8b67e6d34a3d11fe4bfb9cd27191e2b28 (diff)
Added support for parsing anticheat cvars.txt and hashes.txt.
Properly parse multiple AC server messages received at once. Added `--enable-anticheat' option to configure script.
Diffstat (limited to 'source/mvd_client.c')
-rw-r--r--source/mvd_client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/mvd_client.c b/source/mvd_client.c
index 4b240eb..e1ae2c6 100644
--- a/source/mvd_client.c
+++ b/source/mvd_client.c
@@ -559,7 +559,7 @@ static qboolean MVD_ParseResponse( mvd_t *mvd ) {
if( !mvd->statusCode ) {
// parse version
- token = COM_SimpleParse( &line );
+ token = COM_SimpleParse( &line, NULL );
if( !token[0] ) {
continue; // empty line?
}
@@ -568,7 +568,7 @@ static qboolean MVD_ParseResponse( mvd_t *mvd ) {
}
// parse status code
- token = COM_SimpleParse( &line );
+ token = COM_SimpleParse( &line, NULL );
mvd->statusCode = atoi( token );
if( !mvd->statusCode ) {
MVD_Dropf( mvd, "Malformed HTTP status code" );
@@ -583,7 +583,7 @@ static qboolean MVD_ParseResponse( mvd_t *mvd ) {
}
} else {
// parse header fields
- token = COM_SimpleParse( &line );
+ token = COM_SimpleParse( &line, NULL );
if( !token[0] ) {
return qtrue; // end of header
}
@@ -595,7 +595,7 @@ static qboolean MVD_ParseResponse( mvd_t *mvd ) {
*p = 0;
Q_strlwr( key );
- token = COM_SimpleParse( &line );
+ token = COM_SimpleParse( &line, NULL );
if( !strcmp( key, "content-type" ) ) {
} else if( !strcmp( key, "content-encoding" ) ) {
#if USE_ZLIB