diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-29 02:05:19 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-29 02:05:19 +0200 |
commit | 89526be11ca68bf639927c4ed1bc808bb769f5f5 (patch) | |
tree | 0d8a66dad4d8c64d5cfab32c11132b2c0e1ca301 /plugins/mod_carbons.lua | |
parent | 62eaaff226249e924494f78434c422bd094264c1 (diff) | |
parent | 63e10c1c271e70eafc4257a54b07178488e33de1 (diff) | |
download | prosody-89526be11ca68bf639927c4ed1bc808bb769f5f5.tar.gz prosody-89526be11ca68bf639927c4ed1bc808bb769f5f5.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_carbons.lua')
-rw-r--r-- | plugins/mod_carbons.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua index cb7d9233..1dcd4a07 100644 --- a/plugins/mod_carbons.lua +++ b/plugins/mod_carbons.lua @@ -76,6 +76,9 @@ local function message_handler(event, c2s) -- 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 }) |