pidgin: 4c705f4c: Set an error if you're unable to connect...

qulogic at pidgin.im qulogic at pidgin.im
Wed Feb 18 21:30:40 EST 2009


-----------------------------------------------------------------
Revision: 4c705f4c1149e001f86ed88ffc64ccb5acbc8261
Ancestor: 413bb2c3fa63dac7c9c121ffd6203c1e6fa61544
Author: qulogic at pidgin.im
Date: 2009-02-19T02:24:56
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4c705f4c1149e001f86ed88ffc64ccb5acbc8261

Modified files:
        libpurple/protocols/msn/contact.c

ChangeLog: 

Set an error if you're unable to connect to the contact server, or are not
able to parse the buddy list.

Fixes #8450.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/contact.c	0a84c3963a25cdfcbed4b5417e640260ba66a9a7
+++ libpurple/protocols/msn/contact.c	7ef3db2fa6f5dc428b73648a17aa5060f4c9ecad
@@ -205,6 +205,7 @@ msn_contact_request_cb(MsnSoapMessage *r
 		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_cb(MsnSoapMessage *req, 
 		/*
 		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);
 	}
 }
 


More information about the Commits mailing list