# HG changeset patch # User Kim Alvefur # Date 1463868046 -7200 # Node ID 530feb0e23ffba9cfdb31d5c404006778962e64f # Parent b76b062e77db770c936b8230ffc98ca7275c2c10 mod_mam_muc: Fix order of arguments for archive API diff -r b76b062e77db -r 530feb0e23ff mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Wed May 11 23:13:03 2016 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Sun May 22 00:00:46 2016 +0200 @@ -366,7 +366,7 @@ if stanza.attr.type then with = with .. "<" .. stanza.attr.type end - archive:append(room, nil, time_now(), with, stanza); + archive:append(room, stanza, nil, time_now(), with); end module:hook("muc-broadcast-message", function (event)