mod_mam: Add missing up()
authorKim Alvefur <zash@zash.se>
Tue, 28 Feb 2012 14:36:41 +0100
changeset 620 648e75c9d3e7
parent 619 cade7dac6159
child 621 7bdd02056e2b
mod_mam: Add missing up()
mod_mam/mod_mam.lua
--- a/mod_mam/mod_mam.lua	Tue Feb 28 14:36:05 2012 +0100
+++ b/mod_mam/mod_mam.lua	Tue Feb 28 14:36:41 2012 +0100
@@ -224,7 +224,7 @@
 
 		-- Stamp "We archived this" on the message
 		local id = uuid();
-		stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id });
+		stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id }):up();
 
 		local when = time_now();
 		-- And stash it