# HG changeset patch # User Matthew Wild # Date 1539250561 -3600 # Node ID bd5e4485a245eea4e0767f59c9c9d0f93cf57849 # Parent 2098794ac866c64ae80c8f7422013c0718553a54 mod_storage_memory: Switch from '@' prefix to '=' for chunks, '@' is used to indicate a source file name only diff -r 2098794ac866 -r bd5e4485a245 plugins/mod_storage_memory.lua --- 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