diff options
author | James Booth <boothj5@gmail.com> | 2016-08-10 21:37:22 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-08-10 21:37:22 +0100 |
commit | 5d6b2d0b0414dc0bc49ba2855fa76f5d76c87690 (patch) | |
tree | d6ded35d4697d256e3ef99f30933ac11cc88207d /apidocs/python/src/plugin.py | |
parent | a948d741d987b7c94487ec379484c7557c1ea98e (diff) | |
download | profani-tty-5d6b2d0b0414dc0bc49ba2855fa76f5d76c87690.tar.gz |
Add resource to chat message plugin hooks
Diffstat (limited to 'apidocs/python/src/plugin.py')
-rw-r--r-- | apidocs/python/src/plugin.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apidocs/python/src/plugin.py b/apidocs/python/src/plugin.py index a9dac2cd..7e22d5e5 100644 --- a/apidocs/python/src/plugin.py +++ b/apidocs/python/src/plugin.py @@ -71,12 +71,14 @@ def prof_on_disconnect(account_name, fulljid): pass -def prof_pre_chat_message_display(barejid, message): +def prof_pre_chat_message_display(barejid, resource, message): """Called before a chat message is displayed :param barejid: Jabber ID of the message sender + :param resource: resource of the message sender :param message: the received message :type barejid: str or unicode + :type resource: str or unicode :type message: str or unicode :return: the new message to display, or ``None`` to preserve the original message :rtype: str or unicode @@ -84,12 +86,14 @@ def prof_pre_chat_message_display(barejid, message): pass -def prof_post_chat_message_display(barejid, message): +def prof_post_chat_message_display(barejid, resource, message): """Called after a chat message is displayed :param barejid: Jabber ID of the message sender + :param resource: resource of the message sender :param message: the received message :type barejid: str or unicode + :type resource: str or unicode :type message: str or unicode """ pass |