Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
1556:22532a7e5fbf | 1557:1ca5f5fcd483 |
---|---|
188 if (yahoo_makeint(pkt->msgtype) == 0) | 188 if (yahoo_makeint(pkt->msgtype) == 0) |
189 CALLBACK(sess, YAHOO_HANDLE_ONLINE); | 189 CALLBACK(sess, YAHOO_HANDLE_ONLINE); |
190 case YAHOO_SERVICE_LOGOFF: | 190 case YAHOO_SERVICE_LOGOFF: |
191 case YAHOO_SERVICE_ISAWAY: | 191 case YAHOO_SERVICE_ISAWAY: |
192 case YAHOO_SERVICE_ISBACK: | 192 case YAHOO_SERVICE_ISBACK: |
193 case YAHOO_SERVICE_NEWCONTACT: | |
193 yahoo_parse_status(sess, pkt); | 194 yahoo_parse_status(sess, pkt); |
194 break; | 195 break; |
195 case YAHOO_SERVICE_IDACT: | 196 case YAHOO_SERVICE_IDACT: |
196 CALLBACK(sess, YAHOO_HANDLE_ACTIVATE, pkt->content); | 197 CALLBACK(sess, YAHOO_HANDLE_ACTIVATE, pkt->content); |
197 break; | 198 break; |
295 CALLBACK(session, YAHOO_HANDLE_DISCONNECT); | 296 CALLBACK(session, YAHOO_HANDLE_DISCONNECT); |
296 return; | 297 return; |
297 } | 298 } |
298 yahoo_parse_packet(session, conn, &pkt); | 299 yahoo_parse_packet(session, conn, &pkt); |
299 } else if (conn->type == YAHOO_CONN_TYPE_DUMB) { | 300 } else if (conn->type == YAHOO_CONN_TYPE_DUMB) { |
300 YAHOO_PRINT(session, YAHOO_LOG_DEBUG, "closing buddy list host connnection"); | 301 char *buf = g_malloc0(5000); |
302 while (read(socket, &buf[pos++], 1) == 1); | |
303 if (pos == 1) { | |
304 g_free(buf); | |
305 YAHOO_PRINT(session, YAHOO_LOG_WARNING, "error reading from listserv"); | |
306 return; | |
307 } | |
308 YAHOO_PRINT(session, YAHOO_LOG_DEBUG, buf); | |
309 YAHOO_PRINT(session, YAHOO_LOG_NOTICE, "closing buddy list host connnection"); | |
301 yahoo_close(session, conn); | 310 yahoo_close(session, conn); |
302 } | 311 } |
303 } | 312 } |
304 | 313 |
305 void yahoo_add_handler(struct yahoo_session *session, int type, yahoo_callback function) | 314 void yahoo_add_handler(struct yahoo_session *session, int type, yahoo_callback function) |