]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Xonstat: uri_escape thrice
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 3 Apr 2016 02:58:29 +0000 (12:58 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 3 Apr 2016 02:58:29 +0000 (12:58 +1000)
qcsrc/common/playerstats.qc
qcsrc/common/state.qc

index 233762202efda470e23ed15819f2fa2fadf34bd5..ec2f7cad3ddf3d4fc9ca8ae568824b37d216854c 100644 (file)
@@ -427,7 +427,7 @@ void PlayerStats_PlayerBasic(entity joiningplayer, float newrequest)
                                PS_B_IN_DB = db_create();
 
                        // now request the information
-                       uri = strcat(uri, "/player/", uri_escape(uri_escape(joiningplayer.crypto_idfp)), "/elo.txt");
+                       uri = strcat(uri, "/player/", uri_escape(uri_escape(uri_escape(joiningplayer.crypto_idfp))), "/elo.txt");
                        LOG_TRACE("Retrieving playerstats from URL: ", uri, "\n");
                        url_single_fopen(
                                uri,
index d75e08027171aee5cf812333cb56367bb974a3e8..1d96923ed0fe314b643e8dd510421c5615b34476 100644 (file)
@@ -39,8 +39,7 @@ void ClientState_attach(entity this)
 
     GetCvars(this, 0);  // get other cvars from player
 
-       // TODO: xonstat elo.txt support, until then just 404s
-       if (false && IS_REAL_CLIENT(this)) { PlayerStats_PlayerBasic_CheckUpdate(this); }
+       if (IS_REAL_CLIENT(this)) { PlayerStats_PlayerBasic_CheckUpdate(this); }
 
        // TODO: fold all of these into ClientState