Software /
code /
prosody-modules
Diff
mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 3453:41e1cacf3c4e
mod_storage_xmlarchive: Don't return early when looking through entire archive
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Jan 2019 19:52:04 +0100 |
parent | 3452:0c539092aa75 |
child | 3462:d73ed7975d82 |
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Jan 21 19:17:49 2019 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Jan 21 19:52:04 2019 +0100 @@ -69,7 +69,9 @@ return d, i, items; end end - return; -- Assuming no duplicates + if date then + return; -- Assuming no duplicates + end elseif date and date < dates[d] then return; -- List is assumed to be sorted end