fixes [7955]: don't set sleeper state to off when we send a presence while autoaway.

This commit is contained in:
Yann Leboulanger 2007-02-12 21:51:12 +00:00
parent 37f10e8d68
commit b55a0c097e
1 changed files with 1 additions and 1 deletions

View File

@ -2812,7 +2812,7 @@ class RosterWindow:
if status == 'online' and gajim.interface.sleeper.getState() != \
common.sleepy.STATE_UNKNOWN:
gajim.sleeper_state[account] = 'online'
elif gajim.interface.sleeper.getState() == common.sleepy.STATE_UNKNOWN:
elif gajim.sleeper_state[account] not in ('autoaway', 'autoxa'):
gajim.sleeper_state[account] = 'off'
gajim.connections[account].change_status(status, txt, auto)