Add 'presence' event, raised for all incoming presence stanzas.
This commit is contained in:
parent
3b2c865a58
commit
f5652a667b
1 changed files with 2 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue