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

big bugfix: send the correct status

parent 9e8c2a29
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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