Add plugin extension point "send-presence"
This lets plugins modify the presence
This commit is contained in:
parent
ecdf1526fb
commit
3312ca6c29
1 changed files with 2 additions and 0 deletions
|
@ -389,6 +389,8 @@ class Presence(BaseModule):
|
|||
if not app.account_is_connected(self._account):
|
||||
return
|
||||
presence = self.get_presence(*args, **kwargs)
|
||||
app.plugin_manager.extension_point(
|
||||
'send-presence', self._account, presence)
|
||||
self._log.debug('Send presence:\n%s', presence)
|
||||
self._con.connection.send(presence)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue