Software /
code /
prosody-modules
Diff
mod_carbons/mod_carbons.lua @ 1151:28d4b58bcc3b
mod_carbons: Add support for XEP-0334: Message Processing Hints
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 11 Aug 2013 23:37:26 +0200 |
parent | 900:aca1c5eb0508 |
child | 1167:8ceab2331216 |
line wrap: on
line diff
--- a/mod_carbons/mod_carbons.lua Sun Aug 11 23:23:58 2013 +0200 +++ b/mod_carbons/mod_carbons.lua Sun Aug 11 23:37:26 2013 +0200 @@ -84,6 +84,9 @@ end); module:log("debug", "Message tagged private, ignoring"); return + elseif stanza:get_child("no-copy", "urn:xmpp:hints") then + module:log("debug", "Message has no-copy hint, ignoring"); + return end -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP