aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_memory.lua
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
commitfaf1282ee2dfacfba3a947edd9142b93ca1f4162 (patch)
tree0b4f53c92c2425aa63cfb61eb5c3b0e8390541cf /plugins/mod_storage_memory.lua
parent43f98c242d4a212a8de0d8965733c206109c4d23 (diff)
downloadprosody-faf1282ee2dfacfba3a947edd9142b93ca1f4162.tar.gz
prosody-faf1282ee2dfacfba3a947edd9142b93ca1f4162.zip
mod_storage_memory: Return correct error even if no archive data available
Diffstat (limited to 'plugins/mod_storage_memory.lua')
-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