]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
checkextension(): check libcurl is loaded before returning it's available
[xonotic/darkplaces.git] / prvm_cmds.c
index 6535ea0ad04074b19b830c3a29a302998471d819..e8c54bb2fe9a045eae0ea214b3f4f633d4632d57 100644 (file)
@@ -321,6 +321,10 @@ static qbool checkextension(prvm_prog_t *prog, const char *name)
                        if (!strcasecmp("DP_QC_DIGEST_SHA256", name))
                                return Crypto_Available();
 
+                       // special shreck for libcurl
+                       if (!strcasecmp("DP_QC_URI_GET", name) || !strcasecmp("DP_QC_URI_POST", name))
+                               return Curl_Available();
+
                        return true;
                }
        }