src/protocols/yahoo/yahoo.c

changeset 9888
162a02f2ac9d
parent 9886
ea7433072a8f
child 9917
2fbb3c9fab2b
equal deleted inserted replaced
9887:d67d35d983a8 9888:162a02f2ac9d
373 break; 373 break;
374 case 7: /* the current buddy */ 374 case 7: /* the current buddy */
375 name = pair->value; 375 name = pair->value;
376 if (name && g_utf8_validate(name, -1, NULL)) 376 if (name && g_utf8_validate(name, -1, NULL))
377 f = yahoo_friend_find_or_new(gc, name); 377 f = yahoo_friend_find_or_new(gc, name);
378 else 378 else {
379 f = name = NULL; 379 f = NULL;
380 name = NULL;
381 }
380 break; 382 break;
381 case 10: /* state */ 383 case 10: /* state */
382 if (!f) 384 if (!f)
383 break; 385 break;
384 386
1659 pack = yahoo_packet_new(YAHOO_SERVICE_AUTHRESP, YAHOO_STATUS_AVAILABLE, 0); 1661 pack = yahoo_packet_new(YAHOO_SERVICE_AUTHRESP, YAHOO_STATUS_AVAILABLE, 0);
1660 yahoo_packet_hash(pack, 0, name); 1662 yahoo_packet_hash(pack, 0, name);
1661 yahoo_packet_hash(pack, 6, resp_6); 1663 yahoo_packet_hash(pack, 6, resp_6);
1662 yahoo_packet_hash(pack, 96, resp_96); 1664 yahoo_packet_hash(pack, 96, resp_96);
1663 yahoo_packet_hash(pack, 1, name); 1665 yahoo_packet_hash(pack, 1, name);
1666 yahoo_packet_hash(pack, 135, "6,0,0,1710");
1664 if (yd->picture_checksum) { 1667 if (yd->picture_checksum) {
1665 char *cksum = g_strdup_printf("%d", yd->picture_checksum); 1668 char *cksum = g_strdup_printf("%d", yd->picture_checksum);
1666 yahoo_packet_hash(pack, 192, cksum); 1669 yahoo_packet_hash(pack, 192, cksum);
1667 g_free(cksum); 1670 g_free(cksum);
1668 } 1671 }

mercurial