diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lluserauth.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/linden/indra/newview/lluserauth.cpp b/linden/indra/newview/lluserauth.cpp index a9b00e1..bb6ee16 100644 --- a/linden/indra/newview/lluserauth.cpp +++ b/linden/indra/newview/lluserauth.cpp | |||
@@ -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 | } |