diff libpurple/protocols/qq/recv_core.c @ 20126:5eb52c076a2f

Add disconnection reasons to qq
author Will Thompson <will.thompson@collabora.co.uk>
date Tue, 02 Oct 2007 00:27:50 +0000
parents 44b4e8bd759b
children ba41f2a60253
line wrap: on
line diff
--- a/libpurple/protocols/qq/recv_core.c	Tue Oct 02 00:14:12 2007 +0000
+++ b/libpurple/protocols/qq/recv_core.c	Tue Oct 02 00:27:50 2007 +0000
@@ -306,7 +306,8 @@
 	gc = (PurpleConnection *) data;
 
 	if(cond != PURPLE_INPUT_READ) {
-		purple_connection_error(gc, _("Socket error"));
+		purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR,
+			_("Socket error"));
 		return;
 	}
 
@@ -316,7 +317,8 @@
 	/* here we have UDP proxy suppport */
 	len = qq_proxy_read(qd, buf, MAX_PACKET_SIZE);
 	if (len <= 0) {
-		purple_connection_error(gc, _("Unable to read from socket"));
+		purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR,
+			_("Unable to read from socket"));
 		return;
 	} else {
 		_qq_packet_process(buf, len, gc);