Author: asterix Date: 2007-01-24 21:54:22 +0100 (Wed, 24 Jan 2007) New Revision: 7892
Modified: trunk/src/gajim.py Log: prevent TB. fixes 2nd traceback of #2936. see #2936
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2007-01-24 10:01:25 UTC (rev 7891) +++ trunk/src/gajim.py 2007-01-24 20:54:22 UTC (rev 7892) @@ -501,6 +501,9 @@ # if we're here it means contact changed show statuss = ['offline', 'error', 'online', 'chat', 'away', 'xa', 'dnd', 'invisible'] + # Ignore invalid show + if array[1] not in statuss: + return old_show = 0 new_show = statuss.index(array[1]) status_message = array[2] @@ -1642,7 +1645,7 @@ else: gajim.connections[account].change_status('offline','')
- def read_sleepy(self): + def read_sleepy(self): '''Check idle status and change that status if needed''' if not self.sleeper.poll(): # idle detection is not supported in that OS