comparison libpurple/protocols/yahoo/libymsg.c @ 32121:2d28bf68e63f

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.
author maiku@pidgin.im
date Mon, 13 Jun 2011 22:29:48 +0000
parents ac3867fbd61f
children accce7b79737 dc30c2bcc299
comparison
equal deleted inserted replaced
32120:ac3867fbd61f 32121:2d28bf68e63f
4846 yahoo_packet_hash_str(pkt, 19, ""); 4846 yahoo_packet_hash_str(pkt, 19, "");
4847 } 4847 }
4848 4848
4849 if (idle) 4849 if (idle)
4850 yahoo_packet_hash_str(pkt, 47, "2"); 4850 yahoo_packet_hash_str(pkt, 47, "2");
4851 else if (yd->current_status == YAHOO_STATUS_CUSTOM &&
4852 !purple_status_is_available(status))
4853 /* We are still unavailable in this case.
4854 * Make sure Yahoo knows that */
4855 yahoo_packet_hash_str(pkt, 47, "1");
4851 4856
4852 yahoo_packet_send_and_free(pkt, yd); 4857 yahoo_packet_send_and_free(pkt, yd);
4853 4858
4854 g_free(msg); 4859 g_free(msg);
4855 g_free(msg2); 4860 g_free(msg2);