]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Server list: check libcurl is loaded before reporting xonstat as available
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 14 Mar 2024 06:59:33 +0000 (16:59 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 14 Mar 2024 06:59:33 +0000 (16:59 +1000)
See also 7ab7da87c6e4cdee0c74da001faeaf493dc07022 derp.

qcsrc/common/playerstats.qc

index 6aa9b4bf0124eb763c535e71760a0da73060c66b..9744eda19231c450315c6984af9a690bdae6b36f 100644 (file)
@@ -290,7 +290,8 @@ void PlayerStats_GameReport_Init() // initiated before InitGameplayMode so that
 
                if(autocvar_g_playerstats_gamereport_uri != cvar_defstring("g_playerstats_gamereport_uri"))
                        serverflags |= SERVERFLAG_PLAYERSTATS | SERVERFLAG_PLAYERSTATS_CUSTOM;
-               else if(checkextension("DP_CRYPTO")) // xonstat requires player and server IDs
+               else if(checkextension("DP_CRYPTO") && checkextension("DP_QC_URI_POST"))
+                       // XonStat submission requires player and server IDs, and HTTPS POST
                        serverflags |= SERVERFLAG_PLAYERSTATS;
 
                PlayerStats_GameReport_AddEvent(PLAYERSTATS_ALIVETIME);