comparison mod_carbons/mod_carbons.lua @ 743:5f7dd5336dbe

mod_carbons: Unconditionally set namespace of forwarded message.
author Kim Alvefur <zash@zash.se>
date Mon, 16 Jul 2012 22:30:43 +0200
parents 2f11d2473afd
children 9927d88a1b2a
comparison
equal deleted inserted replaced
742:da8f561d79b4 743:5f7dd5336dbe
79 module:log("debug", "Message tagged private, ignoring"); 79 module:log("debug", "Message tagged private, ignoring");
80 return 80 return
81 end 81 end
82 82
83 local msg = st.clone(stanza); 83 local msg = st.clone(stanza);
84 msg.attr.xmlns = msg.attr.xmlns or "jabber:client"; 84 msg.attr.xmlns = "jabber:client";
85 local fwd = st.message{ from = bare_jid, type = orig_type, } 85 local fwd = st.message{ from = bare_jid, type = orig_type, }
86 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up() 86 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up()
87 :tag("forwarded", { xmlns = xmlns_forward }) 87 :tag("forwarded", { xmlns = xmlns_forward })
88 :add_child(msg):reset(); 88 :add_child(msg):reset();
89 89