comparison mod_carbons/mod_carbons.lua @ 545:77f350635f4f

mod_carbons: Update to Carbons v0.6.
author Kim Alvefur <zash@zash.se>
date Tue, 10 Jan 2012 21:17:13 +0100
parents 6d0d2673f95e
children ce2798a1bc56
comparison
equal deleted inserted replaced
544:f78a95aa23c4 545:77f350635f4f
81 local fwd = st.message{ 81 local fwd = st.message{
82 from = bare_jid, 82 from = bare_jid,
83 to = full_jid, 83 to = full_jid,
84 type = orig_type, 84 type = orig_type,
85 } 85 }
86 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up()
86 :tag("forwarded", { xmlns = xmlns_forward }) 87 :tag("forwarded", { xmlns = xmlns_forward })
87 :tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up()
88 :add_child(msg); 88 :add_child(msg);
89 core_post_stanza(origin, fwd); 89 core_post_stanza(origin, fwd);
90 end 90 end
91 end 91 end
92 end 92 end