aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-05 07:22:18 +0200
committerKim Alvefur <zash@zash.se>2019-05-05 07:22:18 +0200
commit63333b90631e5b3d7c955ec3c0c2e9eae204faf7 (patch)
tree0b4f53c92c2425aa63cfb61eb5c3b0e8390541cf /plugins
parentd88db76a0669d3613fc6ce1123943e9bd8927395 (diff)
downloadprosody-63333b90631e5b3d7c955ec3c0c2e9eae204faf7.tar.gz
prosody-63333b90631e5b3d7c955ec3c0c2e9eae204faf7.zip
mod_storage_memory: Return correct error even if no archive data available
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_memory.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_storage_memory.lua b/plugins/mod_storage_memory.lua
index 2fae8828..376ae277 100644
--- a/plugins/mod_storage_memory.lua
+++ b/plugins/mod_storage_memory.lua
@@ -91,6 +91,9 @@ function archive_store:find(username, query)
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