summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-04-18 21:16:47 -0700
committerNathan Fritz <nathan@andyet.net>2010-04-18 21:16:47 -0700
commit35c157f9d8c9bb2f59d17ec68b771ffcffb7931d (patch)
tree1b9a4476353cbe08755426bd7ef71f2ed93876fe /sleekxmpp/basexmpp.py
parent09aae38117daf37286ab8967666df26fa36a0772 (diff)
downloadslixmpp-35c157f9d8c9bb2f59d17ec68b771ffcffb7931d.tar.gz
slixmpp-35c157f9d8c9bb2f59d17ec68b771ffcffb7931d.tar.bz2
slixmpp-35c157f9d8c9bb2f59d17ec68b771ffcffb7931d.tar.xz
slixmpp-35c157f9d8c9bb2f59d17ec68b771ffcffb7931d.zip
changed_status event now happens with got_offline/got_online events
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index 1ed9b3ca..cc0f1087 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -271,6 +271,7 @@ class basexmpp(object):
name = self.roster[jid].get('name', '')
if wasoffline and (show == 'available' or show in presence.showtypes):
self.event("got_online", presence)
+ self.event("changed_status", presence)
elif show == 'unavailable':
logging.debug("%s %s got offline" % (jid, resource))
if len(self.roster[jid]['presence']) > 1:
@@ -278,6 +279,7 @@ class basexmpp(object):
else:
del self.roster[jid]
self.event("got_offline", presence)
+ self.event("changed_status", presence)
elif oldroster != self.roster.get(jid, {'presence': {}})['presence'].get(resource, {}):
self.event("changed_status", presence)
name = ''