Software /
code /
prosody
Changeset
9468:bd5e4485a245
mod_storage_memory: Switch from '@' prefix to '=' for chunks, '@' is used to indicate a source file name only
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 11 Oct 2018 10:36:01 +0100 |
parents | 9467:2098794ac866 |
children | 9469:cd2f742e5826 |
files | plugins/mod_storage_memory.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_memory.lua Wed Oct 10 22:03:11 2018 +0100 +++ b/plugins/mod_storage_memory.lua Thu Oct 11 10:36:01 2018 +0100 @@ -30,7 +30,7 @@ function keyval_store:set(username, data) if data ~= nil then - data = envload("return "..serialize(data), "@data", {}); + data = envload("return "..serialize(data), "=(data)", {}); end self.store[username or NULL] = data; return true; @@ -47,9 +47,9 @@ end if is_stanza(value) then value = st.preserialize(value); - value = envload("return xml"..serialize(value), "@stanza", { xml = st.deserialize }) + value = envload("return xml"..serialize(value), "=(stanza)", { xml = st.deserialize }) else - value = envload("return "..serialize(value), "@data", {}); + value = envload("return "..serialize(value), "=(data)", {}); end local a = self.store[username or NULL]; if not a then