Mercurial > pidgin
comparison libpurple/protocols/msn/contact.c @ 25491:c729cdeb88c8
Set an error if you're unable to connect to the contact server, or are not
able to parse the buddy list.
Fixes #8450.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 19 Feb 2009 02:24:56 +0000 |
parents | b1080a1a2cb0 |
children | 7ea04b53f553 de48f984f6e7 |
comparison
equal
deleted
inserted
replaced
25490:ea62e934c80b | 25491:c729cdeb88c8 |
---|---|
203 | 203 |
204 if (resp == NULL) { | 204 if (resp == NULL) { |
205 purple_debug_error("msn", | 205 purple_debug_error("msn", |
206 "Operation {%s} failed. No response received from server.\n", | 206 "Operation {%s} failed. No response received from server.\n", |
207 msn_contact_operation_str(state->action)); | 207 msn_contact_operation_str(state->action)); |
208 msn_session_set_error(state->session, MSN_ERROR_BAD_BLIST, NULL); | |
208 return; | 209 return; |
209 } | 210 } |
210 | 211 |
211 /* Update CacheKey if necessary */ | 212 /* Update CacheKey if necessary */ |
212 cachekey = xmlnode_get_child(resp->xml, "Header/ServiceHeader/CacheKeyChanged"); | 213 cachekey = xmlnode_get_child(resp->xml, "Header/ServiceHeader/CacheKeyChanged"); |
914 send timestamps) | 915 send timestamps) |
915 */ | 916 */ |
916 /* | 917 /* |
917 msn_get_address_book(session, NULL, NULL); | 918 msn_get_address_book(session, NULL, NULL); |
918 */ | 919 */ |
919 msn_session_disconnect(session); | 920 msn_session_set_error(session, MSN_ERROR_BAD_BLIST, NULL); |
920 purple_connection_error_reason(session->account->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to retrieve MSN Address Book")); | |
921 } | 921 } |
922 } | 922 } |
923 | 923 |
924 /*get the address book*/ | 924 /*get the address book*/ |
925 void | 925 void |