Software /
code /
prosody-modules
Diff
mod_storage_muc_log/mod_storage_muc_log.lua @ 2825:d0c4ecabf3f5
mod_storage_muc_log: Signal store being empty correctly
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 15 Nov 2017 22:21:14 +0100 |
parent | 2821:e8f0acfdccca |
child | 3468:228e59bee8ad |
line wrap: on
line diff
--- a/mod_storage_muc_log/mod_storage_muc_log.lua Wed Nov 15 21:08:53 2017 +0100 +++ b/mod_storage_muc_log/mod_storage_muc_log.lua Wed Nov 15 22:21:14 2017 +0100 @@ -82,7 +82,7 @@ dates[i], i = dir, i+1; end end - if dates[1] == nil then return noop, 0; end + if dates[1] == nil then return nil end table.sort(dates); return dates; end