Philipp Hörist pushed to branch master at gajim / gajim


Commits:
3312ca6c by Philipp Hörist at 2019-04-14T18:25:55Z
Add plugin extension point "send-presence"

This lets plugins modify the presence

- - - - -


1 changed file:

- gajim/common/modules/presence.py


Changes:

=====================================
gajim/common/modules/presence.py
=====================================
@@ -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)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/3312ca6c29f19a27bc9fca19854b07faa03b5c50

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/3312ca6c29f19a27bc9fca19854b07faa03b5c50
You're receiving this email because of your account on dev.gajim.org.

_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to