Mercurial > pidgin
diff plugins/yay/rxhandlers.c @ 1557:1ca5f5fcd483
[gaim-migrate @ 1567]
add/remove buddies works.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 10 Mar 2001 09:30:31 +0000 |
parents | c3afde736a8a |
children | 9fe7b059d2a5 |
line wrap: on
line diff
--- 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); } }