update sleepy_state value before we change our status, so we use the old status. Fixes #1879

This commit is contained in:
Yann Leboulanger 2006-04-21 17:02:36 +00:00
parent 79d1443497
commit 50cdffd26f
1 changed files with 1 additions and 1 deletions

View File

@ -1929,13 +1929,13 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
if gc_control.account == account:
gajim.connections[account].send_gc_status(gc_control.nick,
gc_control.room_jid, status, txt)
gajim.connections[account].change_status(status, txt, sync, auto)
if gajim.connections[account].connected > 1:
if status == 'online' and gajim.interface.sleeper.getState() != \
common.sleepy.STATE_UNKNOWN:
gajim.sleeper_state[account] = 'online'
else:
gajim.sleeper_state[account] = 'off'
gajim.connections[account].change_status(status, txt, sync, auto)
def get_status_message(self, show):
if (show == 'online' and not gajim.config.get('ask_online_status')) or \