diff options
author | Lance Stout <lancestout@gmail.com> | 2011-06-18 14:36:19 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-06-18 14:36:19 -0700 |
commit | adf6d49fd14c830c443abda1ef53a84be452a868 (patch) | |
tree | 41db2c8f91acdca19655b4dfb46ded0c8138a146 /sleekxmpp/roster/item.py | |
parent | 0826a44d4b0f5e19fd91d635a43db47128a57cab (diff) | |
download | slixmpp-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/roster/item.py')
-rw-r--r-- | sleekxmpp/roster/item.py | 3 |
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() |