# HG changeset patch # User Nathan Walp # Date 1071428632 0 # Node ID 0f7d0648393ab23c39552bb601fbd2871da9d489 # Parent e4ada6d46b75b9a5b339fa035da6a0ce855fe0bf [gaim-migrate @ 8526] this has a slim chance in hell of fixing the online times thing committer: Tailor Script diff -r e4ada6d46b75 -r 0f7d0648393a src/protocols/oscar/oscar.c --- 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; }