summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-06-18 14:36:19 -0700
committerLance Stout <lancestout@gmail.com>2011-06-18 14:36:19 -0700
commitadf6d49fd14c830c443abda1ef53a84be452a868 (patch)
tree41db2c8f91acdca19655b4dfb46ded0c8138a146 /sleekxmpp
parent0826a44d4b0f5e19fd91d635a43db47128a57cab (diff)
downloadslixmpp-adf6d49fd14c830c443abda1ef53a84be452a868.tar.gz
slixmpp-adf6d49fd14c830c443abda1ef53a84be452a868.tar.bz2
slixmpp-adf6d49fd14c830c443abda1ef53a84be452a868.tar.xz
slixmpp-adf6d49fd14c830c443abda1ef53a84be452a868.zip
Store unavailable presence as last sent presence.
Diffstat (limited to 'sleekxmpp')
-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()