# HG changeset patch # User Kim Alvefur # Date 1490910351 -7200 # Node ID 6c22cb7b0e666efc45ee105e24ef2d6f92e10054 # Parent b0f4014cb5b476de225a00145817e957a12aa43f mod_storage_memory: Fix to serialize the correct variable [luacheck] diff -r b0f4014cb5b4 -r 6c22cb7b0e66 mod_storage_memory/mod_storage_memory.lua --- a/mod_storage_memory/mod_storage_memory.lua Thu Mar 30 23:43:01 2017 +0200 +++ b/mod_storage_memory/mod_storage_memory.lua Thu Mar 30 23:45:51 2017 +0200 @@ -45,10 +45,10 @@ if is_stanza(value) then value = st.preserialize(value); value = function () - return st.deserialize(envload(serialize(data), "@stanza", {})); + return st.deserialize(envload(serialize(value), "@stanza", {})); end else - value = envload(serialize(data), "@data", {}); + value = envload(serialize(value), "@data", {}); end local a = self.store[username or NULL]; if not a then