parent
0f43fa9840
commit
d7b9b50a67
|
@ -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]
|
||||||
|
@ -1642,7 +1645,7 @@ class Interface:
|
||||||
else:
|
else:
|
||||||
gajim.connections[account].change_status('offline','')
|
gajim.connections[account].change_status('offline','')
|
||||||
|
|
||||||
def read_sleepy(self):
|
def read_sleepy(self):
|
||||||
'''Check idle status and change that status if needed'''
|
'''Check idle status and change that status if needed'''
|
||||||
if not self.sleeper.poll():
|
if not self.sleeper.poll():
|
||||||
# idle detection is not supported in that OS
|
# idle detection is not supported in that OS
|
||||||
|
|
Loading…
Reference in New Issue