From 3ffc99102645908375b73b345f1a48f9e28779a3 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 27 Feb 2010 20:08:56 -0600 Subject: Added ClientTagsListURL debug setting. URL to download client tags from. --- linden/indra/newview/llvoavatar.cpp | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'linden/indra/newview/llvoavatar.cpp') diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 883d32f..64e6cd7 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp @@ -3023,18 +3023,24 @@ void LLVOAvatar::idleUpdateWindEffect() bool LLVOAvatar::updateClientTags() { std::string client_list_filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "client_list.xml"); - LLSD response = LLHTTPClient::blockingGet("http://www.imprudenceviewer.org/app/client_list/client_list.xml"); - if(response.has("body")) - { - const LLSD &client_list = response["body"]; - if(client_list.has("isComplete")) + std::string url = gSavedSettings.getString("ClientTagsListURL"); + + if(!url.empty()) + { + LLSD response = LLHTTPClient::blockingGet(url); + if(response.has("body")) { - llofstream export_file; - export_file.open(client_list_filename); - LLSDSerialize::toPrettyXML(client_list, export_file); - export_file.close(); - return true; + const LLSD &client_list = response["body"]; + + if(client_list.has("isComplete")) + { + llofstream export_file; + export_file.open(client_list_filename); + LLSDSerialize::toPrettyXML(client_list, export_file); + export_file.close(); + return true; + } } } return false; -- cgit v1.1