changeset 8357 | b41947a0fc0c |
parent 7779 | 63f50a84318f |
child 10473 | 658b759a1f7a |
child 10781 | 3695904d2854 |
--- a/plugins/mod_carbons.lua Tue Oct 17 12:42:20 2017 +0200 +++ b/plugins/mod_carbons.lua Thu Oct 26 22:22:14 2017 +0200 @@ -76,6 +76,9 @@ -- Create the carbon copy and wrap it as per the Stanza Forwarding XEP local copy = st.clone(stanza); + if c2s and not orig_to then + stanza.attr.to = bare_from; + end copy.attr.xmlns = "jabber:client"; local carbon = st.message{ from = bare_jid, type = orig_type, } :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons })