Mercurial > prosody-modules
diff mod_storage_muc_log/mod_storage_muc_log.lua @ 1753:54c8a0cb2996
mod_storage_(archive-capable): Change order of arguments to :append to be the same as return values from :find iterator (see prosody 41725f3df3cc)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 19 May 2015 18:34:08 +0200 |
parents | 711fabfe6604 |
children | 0aeab7234d5e |
line wrap: on
line diff
--- a/mod_storage_muc_log/mod_storage_muc_log.lua Tue May 19 16:46:20 2015 +0200 +++ b/mod_storage_muc_log/mod_storage_muc_log.lua Tue May 19 18:34:08 2015 +0200 @@ -48,7 +48,10 @@ return with and tag.name .. "<" .. with or tag.name; end -function driver:append(node, key, when, with, stanza) +function driver:append(node, key, stanza, when, with) + if type(when) ~= "number" then + value, when, with = when, with, value; + end local today = os_date(datef, when); local now = os_date(timef, when); local data = data_load(node, host, datastore .. "/" .. today) or {};