comparison mod_carbons/mod_carbons.lua @ 753:9d5731af2c27

Merge with Oliver Gerlich
author Matthew Wild <mwild1@gmail.com>
date Fri, 27 Jul 2012 14:29:59 +0100
parents 5f7dd5336dbe
children 9927d88a1b2a
comparison
equal deleted inserted replaced
752:9bbd99f2057a 753:9d5731af2c27
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