summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-09-15 18:42:47 +0000
committerNathan Fritz <fritzy@netflint.net>2009-09-15 18:42:47 +0000
commite59d43ff3e07610b9cedbd04f64619fe9743694d (patch)
tree59c9fbf845216e6d64e058e469b2a302112a3315 /sleekxmpp/basexmpp.py
parentcb360c94797252291e2016bdc655063dd4670c66 (diff)
downloadslixmpp-e59d43ff3e07610b9cedbd04f64619fe9743694d.tar.gz
slixmpp-e59d43ff3e07610b9cedbd04f64619fe9743694d.tar.bz2
slixmpp-e59d43ff3e07610b9cedbd04f64619fe9743694d.tar.xz
slixmpp-e59d43ff3e07610b9cedbd04f64619fe9743694d.zip
* fixed unavailable status in sendPresence
* fixed jabber:client filtering for components
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index 965570ed..8985b546 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -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