Add 'presence' event, raised for all incoming presence stanzas.
This commit is contained in:
parent
3b2c865a58
commit
f5652a667b
@ -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…
x
Reference in New Issue
Block a user