diff options
author | Lance Stout <lancestout@gmail.com> | 2011-06-18 14:39:17 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-06-18 14:39:17 -0700 |
commit | d1e12cd46fffb56bc7fbe9f1043d01f714356722 (patch) | |
tree | bf836efb3fa83481a3cf41865b1ddbd3c6a5c1ea /sleekxmpp/roster/single.py | |
parent | adf6d49fd14c830c443abda1ef53a84be452a868 (diff) | |
download | slixmpp-d1e12cd46fffb56bc7fbe9f1043d01f714356722.tar.gz slixmpp-d1e12cd46fffb56bc7fbe9f1043d01f714356722.tar.bz2 slixmpp-d1e12cd46fffb56bc7fbe9f1043d01f714356722.tar.xz slixmpp-d1e12cd46fffb56bc7fbe9f1043d01f714356722.zip |
Need to store unavailable presence as last sent if broadcasted.
Diffstat (limited to 'sleekxmpp/roster/single.py')
-rw-r--r-- | sleekxmpp/roster/single.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/roster/single.py b/sleekxmpp/roster/single.py index a8bb8d3a..deb1ac8b 100644 --- a/sleekxmpp/roster/single.py +++ b/sleekxmpp/roster/single.py @@ -265,7 +265,8 @@ class RosterNode(object): pnick=pnick) if self.xmpp.is_component: p['from'] = self.jid - if p['type'] in p.showtypes or p['type'] == 'available': + if p['type'] in p.showtypes or \ + p['type'] in ['available', 'unavailable']: self.last_status = p p.send() |