Skip to content
Snippets Groups Projects
Commit 995515e6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

this is more xmpp compliant (thanks Igor)

parent 2463197d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment