Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
7871:e4ada6d46b75 | 7872:0f7d0648393a |
---|---|
3650 info = va_arg(ap, aim_userinfo_t *); | 3650 info = va_arg(ap, aim_userinfo_t *); |
3651 va_end(ap); | 3651 va_end(ap); |
3652 | 3652 |
3653 gc->evil = (info->warnlevel/10.0) + 0.5; | 3653 gc->evil = (info->warnlevel/10.0) + 0.5; |
3654 | 3654 |
3655 if (info->onlinesince) | 3655 if (info->present & AIM_USERINFO_PRESENT_ONLINESINCE) |
3656 gc->login_time_official = info->onlinesince; | 3656 gc->login_time_official = info->onlinesince; |
3657 else if (info->present & AIM_USERINFO_PRESENT_SESSIONLEN) | |
3658 gc->login_time_official = time(NULL) - info->sessionlen; | |
3657 | 3659 |
3658 return 1; | 3660 return 1; |
3659 } | 3661 } |
3660 | 3662 |
3661 static int gaim_connerr(aim_session_t *sess, aim_frame_t *fr, ...) { | 3663 static int gaim_connerr(aim_session_t *sess, aim_frame_t *fr, ...) { |