prevent TB. fixes 2nd traceback of #2936. see #2936

This commit is contained in:
Yann Leboulanger 2007-01-24 20:54:22 +00:00
parent 0f43fa9840
commit d7b9b50a67
1 changed files with 4 additions and 1 deletions

View File

@ -501,6 +501,9 @@ class Interface:
# if we're here it means contact changed show # if we're here it means contact changed show
statuss = ['offline', 'error', 'online', 'chat', 'away', 'xa', 'dnd', statuss = ['offline', 'error', 'online', 'chat', 'away', 'xa', 'dnd',
'invisible'] 'invisible']
# Ignore invalid show
if array[1] not in statuss:
return
old_show = 0 old_show = 0
new_show = statuss.index(array[1]) new_show = statuss.index(array[1])
status_message = array[2] status_message = array[2]