# HG changeset patch # User Kim Alvefur # Date 1453207799 -3600 # Node ID 13f46d9e526fafbe993010df4ec6b65032367edf # Parent d44ac0756c461c29a756d5c7c47fe2c430ad30be mod_mam: Fix order of arguments to archive append diff -r d44ac0756c46 -r 13f46d9e526f mod_mam/mod_mam.lua --- 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 });