diff mod_carbons/mod_carbons.lua @ 1316:d3e75f6dde9b

mod_carbons: Ignore MUC PMs if tagged as such
author Kim Alvefur <zash@zash.se>
date Sat, 22 Feb 2014 13:25:01 +0100
parents 0d3d15586d7e
children 35c57db6877f
line wrap: on
line diff
--- a/mod_carbons/mod_carbons.lua	Thu Feb 20 20:40:38 2014 +0100
+++ b/mod_carbons/mod_carbons.lua	Sat Feb 22 13:25:01 2014 +0100
@@ -73,6 +73,9 @@
 	elseif stanza:get_child("no-copy", "urn:xmpp:hints") then
 		module:log("debug", "Message has no-copy hint, ignoring");
 		return
+	elseif stanza:get_child("x", "http://jabber.org/protocol/muc#user") then
+		module:log("debug", "MUC PM, ignoring");
+		return
 	end
 
 	-- Create the carbon copy and wrap it as per the Stanza Forwarding XEP