changeset 23640:70d39f235848

Don't show an idle time in the user info if it is 0
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 25 Jul 2008 16:03:11 +0000
parents 66497a2bc489
children a06cbe1719a7 429cd88862fd
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Wed Jul 23 18:47:31 2008 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Fri Jul 25 16:03:11 2008 +0000
@@ -3136,7 +3136,7 @@
 
 	oscar_user_info_append_status(gc, user_info, /* PurpleBuddy */ NULL, userinfo, /* strip_html_tags */ FALSE);
 
-	if (userinfo->present & AIM_USERINFO_PRESENT_IDLE) {
+	if ((userinfo->present & AIM_USERINFO_PRESENT_IDLE) && userinfo->idletime != 0) {
 		tmp = purple_str_seconds_to_string(userinfo->idletime*60);
 		oscar_user_info_add_pair(user_info, _("Idle"), tmp);
 		g_free(tmp);