Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.c @ 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 | c5a4d1863425 |
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; }