don't activate auto away if we connect as away or invisible or anything else than online

This commit is contained in:
Yann Leboulanger 2006-04-21 17:27:28 +00:00
parent e82dc00a96
commit 5f48392890
1 changed files with 2 additions and 1 deletions

View File

@ -1313,7 +1313,8 @@ class Interface:
def handle_event_signed_in(self, account, empty):
'''SIGNED_IN event is emitted when we sign in, so handle it'''
self.roster.actions_menu_needs_rebuild = True
if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN:
if gajim.interface.sleeper.getState() != common.sleepy.STATE_UNKNOWN and \
gajim.connections[account].connected == 2: # we go online, not away
gajim.sleeper_state[account] = 'online'
else:
gajim.sleeper_state[account] = 'off'