Mercurial > pidgin.yaz
comparison src/protocols/yahoo/yahoo.c @ 9888:ef5543c8a664
[gaim-migrate @ 10773]
Patch by Dave Bell to send our yahoo build and version info in the auth
packet, which yahoo doesn't require, but his IMLogic firewall apparently
does. Normally I don't care about funky firewalls, but I don't see any
harm in sending this, and it lets me close two tracker items.
Also a stupid compiler warning fix by me.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 26 Aug 2004 22:31:30 +0000 |
parents | 694c80fc7c2e |
children | e74eb0d11f86 |
comparison
equal
deleted
inserted
replaced
9887:18a787538ad2 | 9888:ef5543c8a664 |
---|---|
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 } |