# HG changeset patch # User Kim Alvefur # Date 1393071901 -3600 # Node ID d3e75f6dde9b5f4a32d7e4bb18abd468b841994b # Parent e8eebf281405a74c82ffb12d246d7e199f88b337 mod_carbons: Ignore MUC PMs if tagged as such diff -r e8eebf281405 -r d3e75f6dde9b mod_carbons/mod_carbons.lua --- 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