diff options
author | Lance Stout <lancestout@gmail.com> | 2012-06-06 16:10:25 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-06-06 16:10:25 -0700 |
commit | f5652a667bfcf896c6078888fe7ec68e21db305d (patch) | |
tree | a491804a14df7a4fa5ab31481f0da6b00194b6fb | |
parent | 3b2c865a5898dd5206422d24bc7a0f1cc7d24df6 (diff) | |
download | slixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.tar.gz slixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.tar.bz2 slixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.tar.xz slixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.zip |
Add 'presence' event, raised for all incoming presence stanzas.
-rw-r--r-- | sleekxmpp/basexmpp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index 63e3339c..43ea6063 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -737,7 +737,8 @@ class BaseXMPP(XMLStream): if not self.is_component and not presence['to'].bare: presence['to'] = self.boundjid - self.event("presence_%s" % presence['type'], presence) + self.event('presence', presence) + self.event('presence_%s' % presence['type'], presence) # Check for changes in subscription state. if presence['type'] in ('subscribe', 'subscribed', |