[Dicson] fix /away command to work when we are onln #7070.
This commit is contained in:
parent
00e53b2571
commit
efa2b44378
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue