diff --git a/common/jabber.py b/common/jabber.py
index d95c92bc0ac008b37c5c7efb03ea22b3a41c71a3..6efe74cdbac8c32cfed64136bfb9472b4cea0034 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)