From efa2b44378e0881b4c547a1af2cf89da3a66c76e Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 15 Feb 2012 20:22:46 +0100 Subject: [PATCH] [Dicson] fix /away command to work when we are onln #7070. --- src/command_system/implementation/standard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command_system/implementation/standard.py b/src/command_system/implementation/standard.py index 76aad4234..04741c398 100644 --- a/src/command_system/implementation/standard.py +++ b/src/command_system/implementation/standard.py @@ -139,7 +139,7 @@ class StandardCommonCommands(CommandContainer): if not gajim.config.get_per('accounts', connection.name, 'sync_with_global_status'): continue - if connection.connected <= 2: + if connection.connected < 2: continue connection.change_status(status, message) @@ -153,7 +153,7 @@ class StandardCommonCommands(CommandContainer): if not gajim.config.get_per('accounts', connection.name, 'sync_with_global_status'): continue - if connection.connected <= 2: + if connection.connected < 2: continue connection.change_status('away', message) @@ -167,7 +167,7 @@ class StandardCommonCommands(CommandContainer): if not gajim.config.get_per('accounts', connection.name, 'sync_with_global_status'): continue - if connection.connected <= 2: + if connection.connected < 2: continue connection.change_status('online', message)