changeset 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
parents 296820f18ba6
children 01fa82074b62
files mod_carbons/mod_carbons.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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