Software /
code /
prosody
Diff
plugins/mod_storage_memory.lua @ 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 |
parent | 9340:368b092bf4bf |
child | 9533:00a8e627854e |
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