# HG changeset patch # User Kim Alvefur # Date 1432202195 -7200 # Node ID 0aeab7234d5e7c33fb91490c21707c225511d172 # Parent 7ba877e2d66041124db9e2ab9a4f783ce2805b9b Fix for 54c8a0cb2996 diff -r 7ba877e2d660 -r 0aeab7234d5e mod_storage_muc_log/mod_storage_muc_log.lua --- a/mod_storage_muc_log/mod_storage_muc_log.lua Thu May 21 11:14:16 2015 +0200 +++ b/mod_storage_muc_log/mod_storage_muc_log.lua Thu May 21 11:56:35 2015 +0200 @@ -50,7 +50,7 @@ function driver:append(node, key, stanza, when, with) if type(when) ~= "number" then - value, when, with = when, with, value; + stanza, when, with = when, with, stanza; end local today = os_date(datef, when); local now = os_date(timef, when); diff -r 7ba877e2d660 -r 0aeab7234d5e mod_storage_xmlarchive/mod_storage_xmlarchive.lua --- 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());