Mercurial > pidgin
diff src/protocols/sametime/sametime.c @ 13210:77e1d19c115a
[gaim-migrate @ 15574]
keep crappier clients from polluting us with weird idle values
committer: Tailor Script <tailor@pidgin.im>
| author | Christopher O'Brien <siege@pidgin.im> |
|---|---|
| date | Fri, 10 Feb 2006 03:46:40 +0000 |
| parents | 8facf33a528a |
| children | 5c79c0dd80db |
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c Thu Feb 09 20:51:27 2006 +0000 +++ b/src/protocols/sametime/sametime.c Fri Feb 10 03:46:40 2006 +0000 @@ -501,12 +501,14 @@ id = aware->id.user; /* not sure which client sends this yet */ - if(idle == 0xdeadbeef) { + 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; }
