# HG changeset patch # User Christopher O'Brien # Date 1144295802 0 # Node ID bfda68675f7b9a10c0e6fcf032a9dc2f9a7edb51 # Parent 0cc7773b1d8719bd6d18b00cd59c3778052ffa4c [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 diff -r 0cc7773b1d87 -r bfda68675f7b src/protocols/sametime/sametime.c --- 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) {