diff --git a/common/jabber.py b/common/jabber.py index 9fb01e8f15765639a3914eab4f06a910e675a6b3..36015eecd795b8886b16c72f89b748486cb033f2 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)