diff mod_carbons/mod_carbons.lua @ 896:d24d87ca3f5f

mod_carbons: <forwarded/> should be nested in <sent/>/<received/>
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 16 Jan 2013 02:27:49 +0100
parents f8d08f8ed7de
children aca1c5eb0508
line wrap: on
line diff
--- a/mod_carbons/mod_carbons.lua	Sat Jan 12 17:33:52 2013 +0100
+++ b/mod_carbons/mod_carbons.lua	Wed Jan 16 02:27:49 2013 +0100
@@ -90,7 +90,7 @@
 	local copy = st.clone(stanza);
 	copy.attr.xmlns = "jabber:client";
 	local carbon = st.message{ from = bare_jid, type = orig_type, }
-		:tag(c2s and "sent" or "received", { xmlns = xmlns_carbons }):up()
+		:tag(c2s and "sent" or "received", { xmlns = xmlns_carbons })
 			:tag("forwarded", { xmlns = xmlns_forward })
 				:add_child(copy):reset();