diff src/buddy.c @ 5002:f78b24df83d5

[gaim-migrate @ 5337] Greying idle Yahoo buddies and added the Yahoo "game" emblem. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 04 Apr 2003 23:15:19 +0000
parents 17f5e6628b37
children 2f25407917f2
line wrap: on
line diff
--- a/src/buddy.c	Fri Apr 04 22:20:37 2003 +0000
+++ b/src/buddy.c	Fri Apr 04 23:15:19 2003 +0000
@@ -712,7 +712,7 @@
 		}
 	}
 
-	if (b->idle) {
+	if (b->idle > 0) {
 		int ihrs, imin;
 		time_t t;
 		time(&t);
@@ -744,7 +744,7 @@
 			       b->name,
 			       aliastext ? _("\n<b>Alias:</b>") : "", aliastext ? aliastext : "",
 			       nicktext ? _("\n<b>Nickname:</b>") : "", nicktext ? nicktext : "",
-			       b->idle ? _("\n<b>Idle:</b>") : "", b->idle ? idletime : "",
+			       idletime ? _("\n<b>Idle:</b>") : "", idletime ? idletime : "",
 			       b->evil ? _("\n<b>Warned:</b>") : "", b->evil ? warning : "",
 			       !b->present ? _("\n<b>Status:</b> Offline") : "",
 			       statustext ? "\n" : "", statustext ? statustext : "",
@@ -959,7 +959,7 @@
 	time_t t;
 
 	if (!(blist_options & OPT_BLIST_SHOW_ICONS)) {
-		if ((b->idle > 0 && blist_options & OPT_BLIST_GREY_IDLERS && !selected) || b->present == 0) {
+		if ((b->idle && blist_options & OPT_BLIST_GREY_IDLERS && !selected) || b->present == 0) {
 			text =  g_strdup_printf("<span color='dim grey'>%s</span>",
 						esc);
 			g_free(esc);
@@ -1013,7 +1013,7 @@
 		}
 	}
 
-	if (b->idle) {
+	if (b->idle > 0) {
 		if (ihrs)
 			idletime = g_strdup_printf(_("Idle (%dh%02dm) "), ihrs, imin);
 		else