From 5bed8191effb1411665acbd93980970b370b71f8 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
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 76aad42343..04741c3982 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)
 
-- 
GitLab