libpurple/protocols/qq/recv_core.c

branch
cpw.resiak.disconnectreason
changeset 21279
40685e1f50ca
parent 20454
c50bd2f30044
child 22685
f3a524370c38
--- a/libpurple/protocols/qq/recv_core.c	Sun Oct 14 12:19:20 2007 +0000
+++ b/libpurple/protocols/qq/recv_core.c	Sun Oct 14 21:08:42 2007 +0000
@@ -306,7 +306,7 @@
 	gc = (PurpleConnection *) data;
 
 	if(cond != PURPLE_INPUT_READ) {
-		purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR,
+		purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
 			_("Socket error"));
 		return;
 	}
@@ -317,7 +317,7 @@
 	/* here we have UDP proxy suppport */
 	len = qq_proxy_read(qd, buf, MAX_PACKET_SIZE);
 	if (len <= 0) {
-		purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR,
+		purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
 			_("Unable to read from socket"));
 		return;
 	} else {

mercurial