plugins/yay/rxhandlers.c

changeset 1557
190572c52915
parent 1554
1883d6c5fb5c
child 1561
008b9a862dbe
--- a/plugins/yay/rxhandlers.c	Sat Mar 10 05:05:53 2001 +0000
+++ b/plugins/yay/rxhandlers.c	Sat Mar 10 09:30:31 2001 +0000
@@ -190,6 +190,7 @@
 	case YAHOO_SERVICE_LOGOFF:
 	case YAHOO_SERVICE_ISAWAY:
 	case YAHOO_SERVICE_ISBACK:
+	case YAHOO_SERVICE_NEWCONTACT:
 		yahoo_parse_status(sess, pkt);
 		break;
 	case YAHOO_SERVICE_IDACT:
@@ -297,7 +298,15 @@
 		}
 		yahoo_parse_packet(session, conn, &pkt);
 	} else if (conn->type == YAHOO_CONN_TYPE_DUMB) {
-		YAHOO_PRINT(session, YAHOO_LOG_DEBUG, "closing buddy list host connnection");
+		char *buf = g_malloc0(5000);
+		while (read(socket, &buf[pos++], 1) == 1);
+		if (pos == 1) {
+			g_free(buf);
+			YAHOO_PRINT(session, YAHOO_LOG_WARNING, "error reading from listserv");
+			return;
+		}
+		YAHOO_PRINT(session, YAHOO_LOG_DEBUG, buf);
+		YAHOO_PRINT(session, YAHOO_LOG_NOTICE, "closing buddy list host connnection");
 		yahoo_close(session, conn);
 	}
 }

mercurial