Software /
code /
prosody
Changeset
10023:f6959fe81a1d
mod_storage_memory: Return correct error even if no archive data available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 05 May 2019 07:22:18 +0200 |
parents | 10022:b56654f89cd5 |
children | 10024:4a0d990253a0 |
files | plugins/mod_storage_memory.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_memory.lua Sun May 05 07:16:03 2019 +0200 +++ b/plugins/mod_storage_memory.lua Sun May 05 07:22:18 2019 +0200 @@ -91,6 +91,9 @@ local items = self.store[username or NULL]; if not items then if query then + if query.before or query.after then + return nil, "item-not-found"; + end if query.total then return function () end, 0; end