always disable autoaway when we go offline. Fixes #5218

This commit is contained in:
Yann Leboulanger 2009-08-28 15:06:35 +02:00
parent abe9eb8b7d
commit 56e5629877
1 changed files with 2 additions and 1 deletions

View File

@ -1999,7 +1999,8 @@ class RosterWindow:
if status == 'online' and gajim.interface.sleeper.getState() != \
common.sleepy.STATE_UNKNOWN:
gajim.sleeper_state[account] = 'online'
elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa'):
elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa') or \
status == 'offline':
gajim.sleeper_state[account] = 'off'
if to: