summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-06-18 14:39:17 -0700
committerLance Stout <lancestout@gmail.com>2011-06-18 14:39:17 -0700
commitd1e12cd46fffb56bc7fbe9f1043d01f714356722 (patch)
treebf836efb3fa83481a3cf41865b1ddbd3c6a5c1ea /sleekxmpp/roster
parentadf6d49fd14c830c443abda1ef53a84be452a868 (diff)
downloadslixmpp-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')
-rw-r--r--sleekxmpp/roster/single.py3
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()