don't set sleeper state to off when we send a presence while not online

This commit is contained in:
Yann Leboulanger 2007-02-08 16:21:28 +00:00
parent cba44a43a1
commit 71293a38e6
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'
else:
elif gajim.interface.sleeper.getState() == common.sleepy.STATE_UNKNOWN:
gajim.sleeper_state[account] = 'off'
gajim.connections[account].change_status(status, txt, auto)