# HG changeset patch # User Kim Alvefur # Date 1376257046 -7200 # Node ID 28d4b58bcc3bc37c24c94ccd93411308b8e55d38 # Parent 296820f18ba610370f1041e7161e0eb4d86c487c mod_carbons: Add support for XEP-0334: Message Processing Hints diff -r 296820f18ba6 -r 28d4b58bcc3b mod_carbons/mod_carbons.lua --- 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