changeset 10126:3c3795562256

[gaim-migrate @ 11163] this fixes yahoo's emblems some, but the priorities are still fscked or something, bleeter appears offline because a higher priority version of himself is offline... committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Tue, 19 Oct 2004 05:17:14 +0000
parents ee50e4797352
children 23e101b522f1
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Tue Oct 19 04:39:55 2004 +0000
+++ b/src/protocols/yahoo/yahoo.c	Tue Oct 19 05:17:14 2004 +0000
@@ -2575,6 +2575,9 @@
 	GaimConnection *gc;
 	struct yahoo_data *yd;
 	YahooFriend *f;
+	GaimPresence *presence;
+	GaimStatus *status;
+	const char *status_id;
 
 	if (!b || !(account = b->account) || !(gc = gaim_account_get_connection(account)) ||
 	  				     !(yd = gc->proto_data))
@@ -2586,7 +2589,11 @@
 		return;
 	}
 
-	if (b->present == GAIM_BUDDY_OFFLINE) {
+	presence = gaim_buddy_get_presence(b);
+	status = gaim_presence_get_active_status(presence);
+	status_id = gaim_status_get_id(status);
+
+	if (gaim_presence_is_online(presence) == FALSE) {
 		*se = "offline";
 		return;
 	} else {