changeset 21129:aed98822d825

merge of '9d8120be512c235d76a8f6fee60cae024da8772e' and 'db2e3703b266820d3b1c3f65a5b8ce05163f62de'
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 03 Nov 2007 20:21:59 +0000
parents 68fc9d5c43f7 (current diff) 323dfb9642e0 (diff)
children 4ea59c6e57cd
files
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/contact.c	Sat Nov 03 20:20:06 2007 +0000
+++ b/libpurple/protocols/msn/contact.c	Sat Nov 03 20:21:59 2007 +0000
@@ -236,11 +236,12 @@
 	MsnListId list)
 {
 	char *passport = xmlnode_get_data(xmlnode_get_child(member, node));
-	char *type = xmlnode_get_data(xmlnode_get_child(member, "type"));
+	char *type = xmlnode_get_data(xmlnode_get_child(member, "Type"));
 	char *member_id = xmlnode_get_data(xmlnode_get_child(member, "MembershipId"));
 	MsnUser *user = msn_userlist_find_add_user(session->userlist, passport, NULL);
 
-	purple_debug_info("msncl","%s name: %s, Type: %s\n", node, passport, type);
+	purple_debug_info("msncl","%s name: %s, Type: %s, MembershipID: %s\n",
+		node, passport, type, member_id == NULL ? "(null)" : member_id);
 
 	if (member_id) {
 		user->membership_id[list] = atoi(member_id);
@@ -282,7 +283,7 @@
 				xmlnode *member;
 
 				purple_debug_info("msncl", "MemberRole role: %s, list: %d\n",
-					role, list);
+					role_str, list);
 
 				for (member = msn_soap_xml_get(membership, "Members/Member");
 					 member; member = xmlnode_get_next_twin(member)) {