diff 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
line wrap: on
line diff
--- a/libpurple/protocols/msn/contact.c	Wed Feb 18 04:31:31 2009 +0000
+++ b/libpurple/protocols/msn/contact.c	Thu Feb 19 02:24:56 2009 +0000
@@ -205,6 +205,7 @@
 		purple_debug_error("msn",
 		                   "Operation {%s} failed. No response received from server.\n",
 		                   msn_contact_operation_str(state->action));
+		msn_session_set_error(state->session, MSN_ERROR_BAD_BLIST, NULL);
 		return;
 	}
 
@@ -916,8 +917,7 @@
 		/*
 		msn_get_address_book(session, NULL, NULL);
 		*/
-		msn_session_disconnect(session);
-		purple_connection_error_reason(session->account->gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to retrieve MSN Address Book"));
+		msn_session_set_error(session, MSN_ERROR_BAD_BLIST, NULL);
 	}
 }