changeset 31665: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 84152881ad5d
files libpurple/protocols/yahoo/libymsg.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);