pidgin: 4c5a026e: Don't show an idle time in the user info...
evands at pidgin.im
evands at pidgin.im
Fri Jul 25 12:06:31 EDT 2008
-----------------------------------------------------------------
Revision: 4c5a026e3419c03409089efe76548d6642ca1e2a
Ancestor: 35ff3232ee23ba378088f681bc89be82f161dce7
Author: evands at pidgin.im
Date: 2008-07-25T16:03:11
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4c5a026e3419c03409089efe76548d6642ca1e2a
Modified files:
libpurple/protocols/oscar/oscar.c
ChangeLog:
Don't show an idle time in the user info if it is 0
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c 9e3b18f63284043379ca1d7c5f25e0fbda169424
+++ libpurple/protocols/oscar/oscar.c b706e73a39f5d988beee0547738d72a9ec43c13a
@@ -3136,7 +3136,7 @@ static int purple_parse_userinfo(OscarDa
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);
More information about the Commits
mailing list