changeset 10244:13cb42ebb537

[gaim-migrate @ 11384] Now online irc buddies don't get the offline emblem. Because that's just weird. (patch by datallah) committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Tue, 23 Nov 2004 02:49:09 +0000
parents e450f24d1fe1
children c143a3fac58d
files src/protocols/irc/irc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Tue Nov 23 02:22:24 2004 +0000
+++ b/src/protocols/irc/irc.c	Tue Nov 23 02:49:09 2004 +0000
@@ -141,8 +141,11 @@
 
 static void irc_blist_emblems(GaimBuddy *b, const char **se, const char **sw, const char **nw, const char **ne)
 {
-	if (b->present == GAIM_BUDDY_OFFLINE)
+	GaimPresence *presence = gaim_buddy_get_presence(b);
+
+	if (gaim_presence_is_online(presence) == FALSE) {
 		*se = "offline";
+	}
 }
 
 static GList *irc_status_types(GaimAccount *account)