Mercurial > pidgin
changeset 7872:0f7d0648393a
[gaim-migrate @ 8526]
this has a slim chance in hell of fixing the online times thing
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 14 Dec 2003 19:03:52 +0000 |
parents | e4ada6d46b75 |
children | f691e3eb4ff3 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sun Dec 14 18:33:00 2003 +0000 +++ b/src/protocols/oscar/oscar.c Sun Dec 14 19:03:52 2003 +0000 @@ -3652,8 +3652,10 @@ gc->evil = (info->warnlevel/10.0) + 0.5; - if (info->onlinesince) + if (info->present & AIM_USERINFO_PRESENT_ONLINESINCE) gc->login_time_official = info->onlinesince; + else if (info->present & AIM_USERINFO_PRESENT_SESSIONLEN) + gc->login_time_official = time(NULL) - info->sessionlen; return 1; }