diff mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 1759:0aeab7234d5e

Fix for 54c8a0cb2996
author Kim Alvefur <zash@zash.se>
date Thu, 21 May 2015 11:56:35 +0200
parents 54c8a0cb2996
children e72f9eac51c8
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Thu May 21 11:14:16 2015 +0200
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Thu May 21 11:56:35 2015 +0200
@@ -25,7 +25,7 @@
 
 function archive:append(username, _, data, when, with)
 	if type(when) ~= "number" then
-		value, when, with = when, with, value;
+		data, when, with = when, with, data;
 	end
 	if getmetatable(data) ~= st.stanza_mt then
 		module:log("error", "Attempt to store non-stanza object, traceback: %s", debug.traceback());