# HG changeset patch # User Evan Schoenberg # Date 1217001791 0 # Node ID 70d39f235848d91534a1a7922a048c2097a4772c # Parent 66497a2bc489cf29a965c4b7331e91fec15c88c9 Don't show an idle time in the user info if it is 0 diff -r 66497a2bc489 -r 70d39f235848 libpurple/protocols/oscar/oscar.c --- 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);