big bugfix: send the correct status

This commit is contained in:
Yann Leboulanger 2005-03-30 18:45:44 +00:00
parent 9e8c2a2970
commit 0200962016
1 changed files with 1 additions and 1 deletions

View File

@ -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)