summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-06 16:10:25 -0700
committerLance Stout <lancestout@gmail.com>2012-06-06 16:10:25 -0700
commitf5652a667bfcf896c6078888fe7ec68e21db305d (patch)
treea491804a14df7a4fa5ab31481f0da6b00194b6fb /sleekxmpp
parent3b2c865a5898dd5206422d24bc7a0f1cc7d24df6 (diff)
downloadslixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.tar.gz
slixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.tar.bz2
slixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.tar.xz
slixmpp-f5652a667bfcf896c6078888fe7ec68e21db305d.zip
Add 'presence' event, raised for all incoming presence stanzas.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/basexmpp.py3
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',