Mercurial > pidgin
comparison libpurple/protocols/msn/contact.c @ 32488:760fd1f86a54
Send circle authentication on the notification server on MSNP18.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 03 Feb 2012 06:04:05 +0000 |
parents | ab9025b46134 |
children | ea3bd56a6092 |
comparison
equal
deleted
inserted
replaced
32487:ab9025b46134 | 32488:760fd1f86a54 |
---|---|
869 { | 869 { |
870 xmlnode *result; | 870 xmlnode *result; |
871 xmlnode *groups; | 871 xmlnode *groups; |
872 xmlnode *contacts; | 872 xmlnode *contacts; |
873 xmlnode *abNode; | 873 xmlnode *abNode; |
874 xmlnode *circleNode; | |
874 xmlnode *fault; | 875 xmlnode *fault; |
875 | 876 |
876 if ((fault = xmlnode_get_child(node, "Body/Fault"))) { | 877 if ((fault = xmlnode_get_child(node, "Body/Fault"))) { |
877 xmlnode *faultnode; | 878 xmlnode *faultnode; |
878 | 879 |
950 if ((node2 = xmlnode_get_child(abNode, "DynamicItemLastChanged"))) | 951 if ((node2 = xmlnode_get_child(abNode, "DynamicItemLastChanged"))) |
951 tmp = xmlnode_get_data(node2); | 952 tmp = xmlnode_get_data(node2); |
952 purple_debug_info("msn", "AB DynamicItemLastChanged :{%s}\n", tmp ? tmp : "(null)"); | 953 purple_debug_info("msn", "AB DynamicItemLastChanged :{%s}\n", tmp ? tmp : "(null)"); |
953 purple_account_set_string(session->account, "DynamicItemLastChanged", tmp); | 954 purple_account_set_string(session->account, "DynamicItemLastChanged", tmp); |
954 g_free(tmp); | 955 g_free(tmp); |
956 } | |
957 | |
958 circleNode = xmlnode_get_child(result, "CircleResult/CircleTicket"); | |
959 if (circleNode != NULL && session->protocol_ver >= 18) { | |
960 char *data; | |
961 | |
962 data = xmlnode_get_data(circleNode); | |
963 msn_notification_send_circle_auth(session, data); | |
964 g_free(data); | |
955 } | 965 } |
956 | 966 |
957 return TRUE; | 967 return TRUE; |
958 } | 968 } |
959 | 969 |