summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster
diff options
context:
space:
mode:
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()