Thu, 06 Apr 2006 03:56:42 +0000
[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
| src/protocols/sametime/sametime.c | file | annotate | diff | comparison | revisions |
--- 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) {