Mercurial > pidgin
diff src/protocols/oscar/oscar.c @ 10860:d01d81de94d8
[gaim-migrate @ 12543]
sf patch #1188728, from Enix
"this patch fixes the sort by status option in HEAD so
that it actually sorts by status. Also, changes the
documenation in status.h for the
gaim_presence_compare() function so that it makes sense."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 24 Apr 2005 18:13:16 +0000 |
parents | c94f40ffcafb |
children | f38bda97f981 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sun Apr 24 17:39:11 2005 +0000 +++ b/src/protocols/oscar/oscar.c Sun Apr 24 18:13:16 2005 +0000 @@ -3010,11 +3010,9 @@ if (caps & AIM_CAPS_ICQ_DIRECT) caps ^= AIM_CAPS_ICQ_DIRECT; - if (info->present & AIM_USERINFO_PRESENT_IDLE) { - time(&time_idle); - time_idle -= info->idletime*60; - /* time_idle should be the seconds since epoch at which the user became idle */ - } + /* info->idletime is the number of minutes that this user has been idle */ + if (info->present & AIM_USERINFO_PRESENT_IDLE) + time_idle = time(NULL) - info->idletime * 60; if (info->present & AIM_USERINFO_PRESENT_ONLINESINCE) signon = info->onlinesince;