diff libpurple/protocols/bonjour/bonjour.c @ 20070:efadfc6e2117

Fix up Bonjour to use purple_connection_error_reason.
author Will Thompson <will.thompson@collabora.co.uk>
date Tue, 18 Sep 2007 16:32:01 +0000
parents 44b4e8bd759b
children f3cfcbbac3d8
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c	Mon Sep 17 16:54:45 2007 +0000
+++ b/libpurple/protocols/bonjour/bonjour.c	Tue Sep 18 16:32:01 2007 +0000
@@ -109,7 +109,8 @@
 
 	if (bonjour_jabber_start(bd->jabber_data) == -1) {
 		/* Send a message about the connection error */
-		purple_connection_error(gc, _("Unable to listen for incoming IM connections\n"));
+		purple_connection_error_reason (gc, PURPLE_REASON_NETWORK_ERROR,
+			_("Unable to listen for incoming IM connections\n"));
 		return;
 	}
 
@@ -134,7 +135,8 @@
 	bd->dns_sd_data->account = account;
 	if (!bonjour_dns_sd_start(bd->dns_sd_data))
 	{
-		purple_connection_error(gc, _("Unable to establish connection with the local mDNS server.  Is it running?"));
+		purple_connection_error_reason (gc, PURPLE_REASON_NETWORK_ERROR,
+			_("Unable to establish connection with the local mDNS server.  Is it running?"));
 		return;
 	}