diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-09-15 18:42:47 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-09-15 18:42:47 +0000 |
commit | e59d43ff3e07610b9cedbd04f64619fe9743694d (patch) | |
tree | 59c9fbf845216e6d64e058e469b2a302112a3315 /sleekxmpp/basexmpp.py | |
parent | cb360c94797252291e2016bdc655063dd4670c66 (diff) | |
download | slixmpp-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.py | 3 |
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 |