From 995515e6db3be04d6fc82577b74a2c8c9927b4d1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 23 Mar 2005 19:14:09 +0000 Subject: [PATCH] this is more xmpp compliant (thanks Igor) --- common/jabber.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/jabber.py b/common/jabber.py index 9fb01e8f1..36015eecd 100644 --- a/common/jabber.py +++ b/common/jabber.py @@ -449,6 +449,9 @@ 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': + type = None + show = None presence = Presence(type=type,priority=priority,show=show,status=status) if signedStatus: presence.setX(NS_XSIGNED).insertData(signedStatus)