im.pidgin.cpw.resiak.disconnectreason: 23e3bb1fa83c5dc2bbfd9a8e397c2a5c6bc4e305

resiak at soc.pidgin.im resiak at soc.pidgin.im
Fri Oct 5 13:00:58 EDT 2007


revision:            23e3bb1fa83c5dc2bbfd9a8e397c2a5c6bc4e305
date:                2007-10-05T16:50:54
author:              resiak at soc.pidgin.im
branch:              im.pidgin.cpw.resiak.disconnectreason
changelog:
Add reasons to a couple of new errors (and to a commented-out one, for
completeness).

manifest:
format_version "1"

new_manifest [b73efb984abaf4e1ab798b2eb7c32716962287f9]

old_revision [55c70a72048b4087b671cc3375d8e3f20692fe3c]

patch "libpurple/protocols/bonjour/bonjour.c"
 from [56dddab0af0d0cdad893b01628a4228fca483ef6]
   to [cd5ee581acb24960c3870971c143c0dd70c8a2b8]

patch "libpurple/protocols/msn/contact.c"
 from [b8e3ab4b18772d098bd0913589611a1e8b5989a3]
   to [cc86272fdb481146fb04a10609a4d31052226658]

patch "libpurple/protocols/yahoo/ycht.c"
 from [de683275f59ac072cd9e4c999dd975275187d4ec]
   to [c29abc3d1660ccc3767d3ea32a9861756bc6ce67]
-------------- next part --------------
============================================================
--- libpurple/protocols/bonjour/bonjour.c	56dddab0af0d0cdad893b01628a4228fca483ef6
+++ libpurple/protocols/bonjour/bonjour.c	cd5ee581acb24960c3870971c143c0dd70c8a2b8
@@ -103,7 +103,7 @@ bonjour_login(PurpleAccount *account)
 #ifdef _WIN32
 	if (!dns_sd_available()) {
 		gc->wants_to_die = TRUE;
-		purple_connection_error(gc,
+		purple_connection_error_reason(gc, PURPLE_REASON_OTHER_ERROR,
 			_("The Apple Bonjour For Windows toolkit wasn't found, see the FAQ at: "
 			  "http://developer.pidgin.im/wiki/Using%20Pidgin#CanIusePidginforBonjourLink-LocalMessaging"
 			  " for more information."));
============================================================
--- libpurple/protocols/msn/contact.c	b8e3ab4b18772d098bd0913589611a1e8b5989a3
+++ libpurple/protocols/msn/contact.c	cc86272fdb481146fb04a10609a4d31052226658
@@ -945,7 +945,7 @@ msn_get_address_cb(MsnSoapConn *soapconn
 		msn_get_address_book(contact, NULL, NULL);
 		*/
 		msn_session_disconnect(session);
-		purple_connection_error(session->account->gc, _("Unable to retrieve MSN Address Book"));
+		purple_connection_error_reason(session->account->gc, PURPLE_REASON_NETWORK_ERROR, _("Unable to retrieve MSN Address Book"));
 		return FALSE;
 	}
 }
============================================================
--- libpurple/protocols/yahoo/ycht.c	de683275f59ac072cd9e4c999dd975275187d4ec
+++ libpurple/protocols/yahoo/ycht.c	c29abc3d1660ccc3767d3ea32a9861756bc6ce67
@@ -285,7 +285,8 @@ static void ycht_packet_send_write_cb(gp
 	else if (ret <= 0) {
 		/* TODO: error handling */
 /*
-		purple_connection_error(purple_account_get_connection(irc->account),
+		purple_connection_error_reason(purple_account_get_connection(irc->account),
+			      PURPLE_REASON_NETWORK_ERROR,
 			      _("Server has disconnected"));
 */
 		return;


More information about the Commits mailing list