From: Christopher (s. O'B. <tal...@us...> - 2006-02-10 03:46:50
|
Update of /cvsroot/gaim/gaim/src/protocols/sametime In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11936 Modified Files: sametime.c Log Message: keep crappier clients from polluting us with weird idle values Index: sametime.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/sametime/sametime.c,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -p -r1.66 -r1.67 --- sametime.c 9 Feb 2006 19:04:36 -0000 1.66 +++ sametime.c 10 Feb 2006 03:46:40 -0000 1.67 @@ -501,12 +501,14 @@ static void mw_aware_list_on_aware(struc 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; } |