diff options
author | Kim Alvefur <zash@zash.se> | 2019-05-05 07:22:18 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-05-05 07:22:18 +0200 |
commit | 63333b90631e5b3d7c955ec3c0c2e9eae204faf7 (patch) | |
tree | 0b4f53c92c2425aa63cfb61eb5c3b0e8390541cf | |
parent | d88db76a0669d3613fc6ce1123943e9bd8927395 (diff) | |
download | prosody-63333b90631e5b3d7c955ec3c0c2e9eae204faf7.tar.gz prosody-63333b90631e5b3d7c955ec3c0c2e9eae204faf7.zip |
mod_storage_memory: Return correct error even if no archive data available
-rw-r--r-- | plugins/mod_storage_memory.lua | 3 |
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 |