aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_memory.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-10-11 10:36:01 +0100
committerMatthew Wild <mwild1@gmail.com>2018-10-11 10:36:01 +0100
commit6c51edbedd9300ea3f1f7a1513696cbcec619c79 (patch)
treeb4285d30e0a1999773b108eda1176453b179e5d1 /plugins/mod_storage_memory.lua
parent8a76424d065947d46b11ee2053ec6912f6226fc4 (diff)
downloadprosody-6c51edbedd9300ea3f1f7a1513696cbcec619c79.tar.gz
prosody-6c51edbedd9300ea3f1f7a1513696cbcec619c79.zip
mod_storage_memory: Switch from '@' prefix to '=' for chunks, '@' is used to indicate a source file name only
Diffstat (limited to 'plugins/mod_storage_memory.lua')
-rw-r--r--plugins/mod_storage_memory.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_storage_memory.lua b/plugins/mod_storage_memory.lua
index 49df48eb..ec29fba6 100644
--- a/plugins/mod_storage_memory.lua
+++ b/plugins/mod_storage_memory.lua
@@ -30,7 +30,7 @@ end
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 @@ function archive_store:append(username, key, value, when, with)
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