pidgin: b22fe1b1: Fix coming out of idle while in an unava...
maiku at pidgin.im
maiku at pidgin.im
Mon Jun 13 18:35:42 EDT 2011
----------------------------------------------------------------------
Revision: b22fe1b183e37298da577f19bdca6f318b209324
Parent: e1b0559d5747c6a3d7f70ccd0bd863ebc8caa320
Author: maiku at pidgin.im
Date: 06/13/11 18:29:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b22fe1b183e37298da577f19bdca6f318b209324
Changelog:
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.
Changes against parent e1b0559d5747c6a3d7f70ccd0bd863ebc8caa320
patched libpurple/protocols/yahoo/libymsg.c
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c 85425c053ed4f8505c13ea478506abff6da461fc
+++ libpurple/protocols/yahoo/libymsg.c e52e4aed8bcc3131613727753199714713e99cf4
@@ -4848,6 +4848,11 @@ void yahoo_set_idle(PurpleConnection *gc
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);
More information about the Commits
mailing list