Software /
code /
prosody-modules
Comparison
mod_storage_memory/mod_storage_memory.lua @ 3361:bc745a60ce21
mod_storage_memory: Fix saving of remaining items during deletion
Backport of 368b092bf4bf from prosody trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 21 Oct 2018 17:49:39 +0200 |
parent | 3091:8e5da12205b5 |
comparison
equal
deleted
inserted
replaced
3360:0149954cee37 | 3361:bc745a60ce21 |
---|---|
126 local t; | 126 local t; |
127 for i = 1, #old do | 127 for i = 1, #old do |
128 i = old[i]; | 128 i = old[i]; |
129 t = i.when; | 129 t = i.when; |
130 if not(qstart >= t and qend <= t and (not qwith or i.with == qwith)) then | 130 if not(qstart >= t and qend <= t and (not qwith or i.with == qwith)) then |
131 self:append(username, i.key, i.value, t, i.with); | 131 self:append(username, i.key, i.value(), t, i.with); |
132 end | 132 end |
133 end | 133 end |
134 if #new == 0 then | 134 if #new == 0 then |
135 self.store[username or NULL] = nil; | 135 self.store[username or NULL] = nil; |
136 end | 136 end |