Software /
code /
prosody-modules
Diff
mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2405:7bce126bf60c
mod_storage_xmlarchive: Skip remaining dates correctly (fixes #790)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 02 Dec 2016 17:39:11 +0100 |
parent | 2399:913bd81a4d3c |
child | 2420:309db11494c2 |
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Fri Dec 02 11:45:10 2016 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Fri Dec 02 17:39:11 2016 +0100 @@ -67,7 +67,7 @@ end end return; -- Assuming no duplicates - elseif date > dates[d] then + elseif date < dates[d] then return; -- List is assumed to be sorted end end