Comparison

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
comparison
equal deleted inserted replaced
2824:e4b04c0c4b15 2825:d0c4ecabf3f5
80 for dir in iter, state, var do 80 for dir in iter, state, var do
81 if lfs.attributes(datamanager.getpath(node, host, datastore .. "/" .. dir), "mode") == "file" then 81 if lfs.attributes(datamanager.getpath(node, host, datastore .. "/" .. dir), "mode") == "file" then
82 dates[i], i = dir, i+1; 82 dates[i], i = dir, i+1;
83 end 83 end
84 end 84 end
85 if dates[1] == nil then return noop, 0; end 85 if dates[1] == nil then return nil end
86 table.sort(dates); 86 table.sort(dates);
87 return dates; 87 return dates;
88 end 88 end
89 89
90 function driver:find(node, query) 90 function driver:find(node, query)