* fixed unavailable status in sendPresence

* fixed jabber:client filtering for components
This commit is contained in:
Nathan Fritz
2009-09-15 18:42:47 +00:00
parent cb360c9479
commit e59d43ff3e
2 changed files with 5 additions and 2 deletions

View File

@@ -297,6 +297,9 @@ class basexmpp(object):
return message
def makePresence(self, pshow=None, pstatus=None, ppriority=None, pto=None, ptype=None, pfrom=None):
if pshow == 'unavailable':
pshow = None
ptype = 'unavailable'
presence = ET.Element('{%s}presence' % self.default_ns)
if ptype:
presence.attrib['type'] = ptype