From 02009620162ea4ed83bd8b655dd515969eff0262 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Wed, 30 Mar 2005 18:45:44 +0000
Subject: [PATCH] big bugfix: send the correct status

---
 common/jabber.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/jabber.py b/common/jabber.py
index d95c92bc0a..6efe74cdba 100644
--- a/common/jabber.py
+++ b/common/jabber.py
@@ -449,7 +449,7 @@ class Client(Connection):
     def sendPresence(self,type=None,priority=None,show=None,status=None,signedStatus=None):
         """Sends a presence protocol element to the server.
            Used to inform the server that you are online"""
-        if type == 'available':
+        if type == 'available' and show == 'online':
             type = None
             show = None
         presence = Presence(type=type,priority=priority,show=show,status=status)
-- 
GitLab