changeset 2018:13f46d9e526f

mod_mam: Fix order of arguments to archive append
author Kim Alvefur <zash@zash.se>
date Tue, 19 Jan 2016 13:49:59 +0100 (2016-01-19)
parents d44ac0756c46
children 7198c129657c
files mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua	Tue Jan 19 13:34:53 2016 +0100
+++ b/mod_mam/mod_mam.lua	Tue Jan 19 13:49:59 2016 +0100
@@ -255,7 +255,7 @@
 		module:log("debug", "Archiving stanza: %s", stanza:top_tag());
 
 		-- And stash it
-		local ok, id = archive:append(store_user, nil, time_now(), with, stanza);
+		local ok, id = archive:append(store_user, nil, stanza, time_now(), with);
 		if ok then
 			if cleanup then cleanup[store_user] = true; end
 			module:fire_event("archive-message-added", { origin = origin, stanza = stanza, for_user = store_user, id = id });