summaryrefslogtreecommitdiff
path: root/sleekxmpp/roster/item.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-11-18 13:57:41 -0800
committerLance Stout <lancestout@gmail.com>2011-11-18 13:57:41 -0800
commitd4c1ff53090abf1d0e672db3d26a9c88318c21ec (patch)
tree35f1b31f59e8a01e732b934ea918f55d949a24e8 /sleekxmpp/roster/item.py
parent22868c3924529701dd8d86ba32a7c1752a3f6cb5 (diff)
downloadslixmpp-d4c1ff53090abf1d0e672db3d26a9c88318c21ec.tar.gz
slixmpp-d4c1ff53090abf1d0e672db3d26a9c88318c21ec.tar.bz2
slixmpp-d4c1ff53090abf1d0e672db3d26a9c88318c21ec.tar.xz
slixmpp-d4c1ff53090abf1d0e672db3d26a9c88318c21ec.zip
Also fire changed_status when the status text changes for a resource.
Diffstat (limited to 'sleekxmpp/roster/item.py')
-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 c27f7a78..4f4663d3 100644
--- a/sleekxmpp/roster/item.py
+++ b/sleekxmpp/roster/item.py
@@ -345,9 +345,10 @@ class RosterItem(object):
self.xmpp.event('got_online', presence)
if resource not in self.resources:
self.resources[resource] = {}
+ old_status = self.resources[resource].get('status', '')
old_show = self.resources[resource].get('show', None)
self.resources[resource].update(data)
- if old_show != presence['show']:
+ if old_show != presence['show'] or old_status != presence['status']:
self.xmpp.event('changed_status', presence)
def handle_unavailable(self, presence):