Need to store unavailable presence as last sent if broadcasted.

This commit is contained in:
Lance Stout 2011-06-18 14:39:17 -07:00
parent adf6d49fd1
commit d1e12cd46f

View file

@ -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()