From f5652a667bfcf896c6078888fe7ec68e21db305d Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 6 Jun 2012 16:10:25 -0700 Subject: [PATCH] Add 'presence' event, raised for all incoming presence stanzas. --- sleekxmpp/basexmpp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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',