Software /
code /
prosody
Diff
plugins/mod_storage_memory.lua @ 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 |
parent | 10019:c30c81176752 |
child | 10220:1e2b444acb72 |
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