# HG changeset patch # User Kim Alvefur # Date 1537625030 -7200 # Node ID 368b092bf4bf24b334f510d7d8192931e562917a # Parent a35a636481c633a8875accdac755d0d946eb4cae mod_storage_memory: Fix saving of remaining items during deletion All data is compiled into functions that return new copies in order to prevent mutation of stored data. This has downsides. Also an ugly hack. diff -r a35a636481c6 -r 368b092bf4bf plugins/mod_storage_memory.lua --- a/plugins/mod_storage_memory.lua Sat Sep 22 15:34:26 2018 +0200 +++ b/plugins/mod_storage_memory.lua Sat Sep 22 16:03:50 2018 +0200 @@ -128,7 +128,7 @@ i = old[i]; t = i.when; if not(qstart >= t and qend <= t and (not qwith or i.with == qwith)) then - self:append(username, i.key, i.value, t, i.with); + self:append(username, i.key, i.value(), t, i.with); end end if #new == 0 then