Mercurial > pidgin
comparison libpurple/protocols/msn/contact.c @ 32487:ab9025b46134
Switch to ABFindContactsPaged instead of ABFindAll.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 03 Feb 2012 04:57:18 +0000 |
parents | 10e5000326a5 |
children | 760fd1f86a54 |
comparison
equal
deleted
inserted
replaced
32486:1a265986ed37 | 32487:ab9025b46134 |
---|---|
895 } | 895 } |
896 | 896 |
897 return FALSE; | 897 return FALSE; |
898 } | 898 } |
899 | 899 |
900 result = xmlnode_get_child(node, "Body/ABFindAllResponse/ABFindAllResult"); | 900 result = xmlnode_get_child(node, "Body/ABFindContactsPagedResponse/ABFindContactsPagedResult"); |
901 if (result == NULL) { | 901 if (result == NULL) { |
902 purple_debug_misc("msn", "Received no address book update\n"); | 902 purple_debug_misc("msn", "Received no address book update\n"); |
903 return TRUE; | 903 return TRUE; |
904 } | 904 } |
905 | 905 |
906 /* I don't see this "groups" tag documented on msnpiki, need to find out | 906 /* I don't see this "groups" tag documented on msnpiki, need to find out |
907 if they are really there, and update msnpiki */ | 907 if they are really there, and update msnpiki */ |
908 /*Process Group List*/ | 908 /*Process Group List*/ |
909 groups = xmlnode_get_child(result, "groups"); | 909 groups = xmlnode_get_child(result, "Groups"); |
910 if (groups != NULL) { | 910 if (groups != NULL) { |
911 msn_parse_addressbook_groups(session, groups); | 911 msn_parse_addressbook_groups(session, groups); |
912 } | 912 } |
913 | 913 |
914 /* Add an "Other Contacts" group for buddies who aren't in a group */ | 914 /* Add an "Other Contacts" group for buddies who aren't in a group */ |
929 purple_blist_add_group(g, NULL); | 929 purple_blist_add_group(g, NULL); |
930 } | 930 } |
931 | 931 |
932 /*Process contact List*/ | 932 /*Process contact List*/ |
933 purple_debug_info("msn", "Process contact list...\n"); | 933 purple_debug_info("msn", "Process contact list...\n"); |
934 contacts = xmlnode_get_child(result, "contacts"); | 934 contacts = xmlnode_get_child(result, "Contacts"); |
935 if (contacts != NULL) { | 935 if (contacts != NULL) { |
936 msn_parse_addressbook_contacts(session, contacts); | 936 msn_parse_addressbook_contacts(session, contacts); |
937 } | 937 } |
938 | 938 |
939 abNode = xmlnode_get_child(result, "ab"); | 939 abNode = xmlnode_get_child(result, "Ab"); |
940 if (abNode != NULL) { | 940 if (abNode != NULL) { |
941 xmlnode *node2; | 941 xmlnode *node2; |
942 char *tmp = NULL; | 942 char *tmp = NULL; |
943 | 943 |
944 if ((node2 = xmlnode_get_child(abNode, "lastChange"))) | 944 if ((node2 = xmlnode_get_child(abNode, "lastChange"))) |