[Dicson] fix /away command to work when we are onln #7070.

This commit is contained in:
Yann Leboulanger 2012-02-15 20:22:46 +01:00
parent 00e53b2571
commit efa2b44378
1 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ class StandardCommonCommands(CommandContainer):
if not gajim.config.get_per('accounts', connection.name, if not gajim.config.get_per('accounts', connection.name,
'sync_with_global_status'): 'sync_with_global_status'):
continue continue
if connection.connected <= 2: if connection.connected < 2:
continue continue
connection.change_status(status, message) connection.change_status(status, message)
@ -153,7 +153,7 @@ class StandardCommonCommands(CommandContainer):
if not gajim.config.get_per('accounts', connection.name, if not gajim.config.get_per('accounts', connection.name,
'sync_with_global_status'): 'sync_with_global_status'):
continue continue
if connection.connected <= 2: if connection.connected < 2:
continue continue
connection.change_status('away', message) connection.change_status('away', message)
@ -167,7 +167,7 @@ class StandardCommonCommands(CommandContainer):
if not gajim.config.get_per('accounts', connection.name, if not gajim.config.get_per('accounts', connection.name,
'sync_with_global_status'): 'sync_with_global_status'):
continue continue
if connection.connected <= 2: if connection.connected < 2:
continue continue
connection.change_status('online', message) connection.change_status('online', message)