diff options
Diffstat (limited to 'linden/indra/newview/lluserauth.cpp')
-rw-r--r-- | linden/indra/newview/lluserauth.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/linden/indra/newview/lluserauth.cpp b/linden/indra/newview/lluserauth.cpp index a9b00e1..968d489 100644 --- a/linden/indra/newview/lluserauth.cpp +++ b/linden/indra/newview/lluserauth.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2003-2008, Linden Research, Inc. | 7 | * Copyright (c) 2003-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -324,17 +324,29 @@ static void parseOptionInto( | |||
324 | while(opt) | 324 | while(opt) |
325 | { | 325 | { |
326 | key.assign(XMLRPC_GetValueID(opt)); | 326 | key.assign(XMLRPC_GetValueID(opt)); |
327 | //llinfos "option key: " << key << llendl; | 327 | //llinfos << "option key: " << key << llendl; |
328 | type = XMLRPC_GetValueTypeEasy(opt); | 328 | type = XMLRPC_GetValueTypeEasy(opt); |
329 | if(xmlrpc_type_string == type) | 329 | if(xmlrpc_type_string == type) |
330 | { | 330 | { |
331 | val.assign(XMLRPC_GetValueString(opt)); | 331 | val.assign(XMLRPC_GetValueString(opt)); |
332 | //llinfos << "string val: " << val << llendl; | ||
332 | } | 333 | } |
333 | else if(xmlrpc_type_int == type) | 334 | else if(xmlrpc_type_int == type) |
334 | { | 335 | { |
335 | val = llformat("%d", XMLRPC_GetValueInt(opt)); | 336 | val = llformat("%d", XMLRPC_GetValueInt(opt)); |
337 | //llinfos << "int val: " << val << llendl; | ||
336 | } | 338 | } |
337 | //llinfos "option val: " << val << llendl; | 339 | else if(xmlrpc_type_double == type) |
340 | { | ||
341 | val = llformat("%g", XMLRPC_GetValueDouble(opt)); | ||
342 | //llinfos << "double val: " << val << llendl; | ||
343 | } | ||
344 | else | ||
345 | { // Can't understand the type | ||
346 | val = "???"; | ||
347 | //llinfos << "unknown value type: " << type << llendl; | ||
348 | } | ||
349 | |||
338 | responses.insert(LLUserAuth::response_t::value_type(key, val)); | 350 | responses.insert(LLUserAuth::response_t::value_type(key, val)); |
339 | opt = XMLRPC_VectorNext(row); | 351 | opt = XMLRPC_VectorNext(row); |
340 | } | 352 | } |