Software /
code /
prosody
Diff
plugins/mod_storage_internal.lua @ 8181:79f73af4c410
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 06 Jul 2017 11:24:36 +0200 |
parent | 8173:3ff99d49082f |
child | 8309:5281c479955a |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Thu Jul 06 11:22:16 2017 +0200 +++ b/plugins/mod_storage_internal.lua Thu Jul 06 11:24:36 2017 +0200 @@ -62,7 +62,13 @@ function archive:find(username, query) local items, err = datamanager.list_load(username, host, self.store); - if not items then return items, err; end + if not items then + if err then + return items, err; + else + return function () end, 0; + end + end local count = #items; local i = 0; if query then