about summary refs log tree commit diff stats
path: root/apidocs/c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-08-10 21:37:22 +0100
committerJames Booth <boothj5@gmail.com>2016-08-10 21:37:22 +0100
commit5d6b2d0b0414dc0bc49ba2855fa76f5d76c87690 (patch)
treed6ded35d4697d256e3ef99f30933ac11cc88207d /apidocs/c
parenta948d741d987b7c94487ec379484c7557c1ea98e (diff)
downloadprofani-tty-5d6b2d0b0414dc0bc49ba2855fa76f5d76c87690.tar.gz
Add resource to chat message plugin hooks
Diffstat (limited to 'apidocs/c')
-rw-r--r--apidocs/c/profhooks.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/apidocs/c/profhooks.h b/apidocs/c/profhooks.h
index 1630a66e..d0beed28 100644
--- a/apidocs/c/profhooks.h
+++ b/apidocs/c/profhooks.h
@@ -43,17 +43,19 @@ void prof_on_disconnect(const char * const account_name, const char * const full
 /**
 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
 @return the new message to display, or NULL to preserve the original message 
 */
-char* prof_pre_chat_message_display(const char * const barejid, const char *message);
+char* prof_pre_chat_message_display(const char * const barejid, const char *const resource, const char *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
 */
-void prof_post_chat_message_display(const char * const barejid, const char *message);
+void prof_post_chat_message_display(const char * const barejid, const char *const resource, const char *message);
 
 /**
 Called before a chat message is sent