summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/roster')
-rw-r--r--sleekxmpp/roster/item.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/roster/item.py b/sleekxmpp/roster/item.py
index 72baf694..9980b3b4 100644
--- a/sleekxmpp/roster/item.py
+++ b/sleekxmpp/roster/item.py
@@ -312,7 +312,8 @@ class RosterItem(object):
pto=self.jid)
if self.xmpp.is_component:
p['from'] = self.owner
- 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()