Mercurial > pidgin.yaz
changeset 13587:bfda68675f7b
[gaim-migrate @ 15972]
another sametime client is polluting idle values. I've submitted a bug to their team, but this will help hide it sometimes
committer: Tailor Script <tailor@pidgin.im>
author | Christopher O'Brien <siege@pidgin.im> |
---|---|
date | Thu, 06 Apr 2006 03:56:42 +0000 |
parents | 0cc7773b1d87 |
children | bbf2e601be82 |
files | src/protocols/sametime/sametime.c |
diffstat | 1 files changed, 7 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c Thu Apr 06 02:03:20 2006 +0000 +++ b/src/protocols/sametime/sametime.c Thu Apr 06 03:56:42 2006 +0000 @@ -500,16 +500,13 @@ stat = aware->status.status; id = aware->id.user; - /* not sure which client sends this yet */ - if(idle == 0xdeadbeef || idle < 0 || idle > time(NULL)) { - /* knock knock! - who's there? - rude interrupting cow. - rude interr... - MOO! */ - - DEBUG_INFO("%s has messy idle value 0x%x\n", NSTR(id), idle); - idle = -1; + if(idle) { + DEBUG_INFO("%s has idle value 0x%x\n", NSTR(id), idle); + + if(idle < 0 || idle > time(NULL)) { + DEBUG_INFO("hiding a messy idle value 0x%x\n", NSTR(id), idle); + idle = -1; + } } switch(stat) {