Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo.c @ 19190:5e297b409b3a
Make adding buddies work again for yahoo.
This was mostly trial and error. I left out the first and last name
arguments because they didn't seem to be required. The order did seem
to matter. I don't know what most of the attributes I added mean,
except 97 which is usually UTF-8.
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Thu, 12 Jul 2007 11:40:17 +0000 |
parents | 07413ddcd49c |
children | b39aa44b9769 |
comparison
equal
deleted
inserted
replaced
19189:07413ddcd49c | 19190:5e297b409b3a |
---|---|
3679 group = "Buddies"; | 3679 group = "Buddies"; |
3680 } | 3680 } |
3681 | 3681 |
3682 group2 = yahoo_string_encode(gc, group, NULL); | 3682 group2 = yahoo_string_encode(gc, group, NULL); |
3683 pkt = yahoo_packet_new(YAHOO_SERVICE_ADDBUDDY, YAHOO_STATUS_AVAILABLE, 0); | 3683 pkt = yahoo_packet_new(YAHOO_SERVICE_ADDBUDDY, YAHOO_STATUS_AVAILABLE, 0); |
3684 yahoo_packet_hash(pkt, "ssss", 1, purple_connection_get_display_name(gc), | 3684 yahoo_packet_hash(pkt, "ssssssssss", |
3685 7, buddy->name, 65, group2, 14, ""); | 3685 14, "", |
3686 65, group2, | |
3687 97, "1", | |
3688 1, purple_connection_get_display_name(gc), | |
3689 302, "319", | |
3690 300, "319", | |
3691 7, buddy->name, | |
3692 334, "0", | |
3693 301, "319", | |
3694 303, "319" | |
3695 ); | |
3686 yahoo_packet_send_and_free(pkt, yd); | 3696 yahoo_packet_send_and_free(pkt, yd); |
3687 g_free(group2); | 3697 g_free(group2); |
3688 } | 3698 } |
3689 | 3699 |
3690 static void yahoo_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group) | 3700 static void yahoo_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group) |