# HG changeset patch # User maiku@pidgin.im # Date 1308004188 0 # Node ID 2d28bf68e63fda4c5ca94b1af699da1d4a5c44fa # Parent ac3867fbd61f6eb7a35e4703e011d576aed689af Fix coming out of idle while in an unavailable state for Yahoo In the Yahoo prpl, when you'd go idle and come back while being busy or away, you'd appear as available. This patch fixes that by sending the correct custom status flag when coming out of idle. diff -r ac3867fbd61f -r 2d28bf68e63f libpurple/protocols/yahoo/libymsg.c --- a/libpurple/protocols/yahoo/libymsg.c Mon Jun 13 21:44:04 2011 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Mon Jun 13 22:29:48 2011 +0000 @@ -4848,6 +4848,11 @@ if (idle) yahoo_packet_hash_str(pkt, 47, "2"); + else if (yd->current_status == YAHOO_STATUS_CUSTOM && + !purple_status_is_available(status)) + /* We are still unavailable in this case. + * Make sure Yahoo knows that */ + yahoo_packet_hash_str(pkt, 47, "1"); yahoo_packet_send_and_free(pkt, yd);