big bugfix: send the correct status
This commit is contained in:
parent
9e8c2a2970
commit
0200962016
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue