# HG changeset patch # User Kim Alvefur # Date 1569782880 -7200 # Node ID f9301d93de727de6dbcf26a6eb44e313e098b4c5 # Parent 4701415f5b0e3ad11334cb12d0217f47163c2895 MUC: Strip tags with MUC-related namespaces from private messages (fixes #1427) Prevents duplication since it adds another <{muc#user}x> here diff -r 4701415f5b0e -r f9301d93de72 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Sat Sep 21 16:29:16 2019 +0200 +++ b/plugins/muc/muc.lib.lua Sun Sep 29 20:48:00 2019 +0200 @@ -779,6 +779,7 @@ return true; end log("debug", "%s sent private message stanza to %s (%s)", from, to, o_data.jid); + stanza = muc_util.filter_muc_x(st.clone(stanza)); stanza:tag("x", { xmlns = "http://jabber.org/protocol/muc#user" }):up(); stanza.attr.from = current_nick; self:route_to_occupant(o_data, stanza)