comparison mcabber/doc/HOWTO_modules.txt @ 2156:a54c084af4d6

Add a "carbon" parameter to the hook-{pre,post}-message-in hooks
author Mikael Berthe <mikael@lilotux.net>
date Sat, 04 Oct 2014 20:38:41 +0200
parents e702073612de
children
comparison
equal deleted inserted replaced
2155:a053629321ed 2156:a54c084af4d6
199 * message - message body, converted to locale charset 199 * message - message body, converted to locale charset
200 * groupchat - ("true" or "false") 200 * groupchat - ("true" or "false")
201 * delayed - message timestamp (ISO-8601 string) or empty string if 201 * delayed - message timestamp (ISO-8601 string) or empty string if
202 the message wasn't delayed 202 the message wasn't delayed
203 * error - "true" if this is an error message 203 * error - "true" if this is an error message
204 * carbon - "true" if this is a message carbon (cf. XEP-0280)
204 - hook-post-message-in (HOOK_POST_MESSAGE_IN) with parameters 205 - hook-post-message-in (HOOK_POST_MESSAGE_IN) with parameters
205 * jid - sender of the incoming message 206 * jid - sender of the incoming message
206 * resource - resource of the incoming message 207 * resource - resource of the incoming message
207 * message - message body, converted to locale charset 208 * message - message body, converted to locale charset
208 * groupchat - ("true" or "false") 209 * groupchat - ("true" or "false")
210 In a regular message, true if the sender has requested your 211 In a regular message, true if the sender has requested your
211 attention (only implemented for MUC currently) 212 attention (only implemented for MUC currently)
212 * delayed - message timestamp (ISO-8601 string) or empty string if 213 * delayed - message timestamp (ISO-8601 string) or empty string if
213 the message wasn't delayed 214 the message wasn't delayed
214 * error - "true" if this is an error message 215 * error - "true" if this is an error message
216 * carbon - "true" if this is a message carbon (cf. XEP-0280)
215 - hook-message-out (HOOK_MESSAGE_OUT) with parameters 217 - hook-message-out (HOOK_MESSAGE_OUT) with parameters
216 * jid - recipient of the outgoing message 218 * jid - recipient of the outgoing message
217 * message - message body, converted to locale charset 219 * message - message body, converted to locale charset
218 - hook-mdr-received (HOOK_MDR_RECEIVED) with parameter 220 - hook-mdr-received (HOOK_MDR_RECEIVED) with parameter
219 * jid - recipient of the outgoing message 221 * jid - recipient of the outgoing message