comparison libpurple/protocols/msn/contact.c @ 24514:e88f30b437ad

Add tests for some known contact annotations. These don't do anything yet, but hopefully when people upload logs, I'll be able to figure out if there are any we don't know about yet.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 28 Nov 2008 05:11:52 +0000
parents 45070d57a934
children f1936abe1616
comparison
equal deleted inserted replaced
24513:45070d57a934 24514:e88f30b437ad
601 annotation; annotation = xmlnode_get_next_twin(annotation)) { 601 annotation; annotation = xmlnode_get_next_twin(annotation)) {
602 char *name; 602 char *name;
603 name = xmlnode_get_data(xmlnode_get_child(annotation, "Name")); 603 name = xmlnode_get_data(xmlnode_get_child(annotation, "Name"));
604 if (!strcmp(name, "AB.NickName")) 604 if (!strcmp(name, "AB.NickName"))
605 alias = xmlnode_get_data(xmlnode_get_child(annotation, "Value")); 605 alias = xmlnode_get_data(xmlnode_get_child(annotation, "Value"));
606 else if (!strcmp(name, "MSN.IM.HasSharedFolder"))
607 ; /* Do nothing yet... */
608 else if (!strcmp(name, "AB.Spouse"))
609 ; /* Do nothing yet... */
610 else if (!strcmp(name, "MSN.Mobile.ContactId"))
611 ; /* Do nothing yet... */
612 else
613 purple_debug_info("msn",
614 "Unknown AB contact annotation: %s\n", name);
606 g_free(name); 615 g_free(name);
607 } 616 }
608 617
609 mobile = msn_parse_addressbook_mobile(contactInfo, &mobile_number); 618 mobile = msn_parse_addressbook_mobile(contactInfo, &mobile_number);
610 619