changeset 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
parents e4b04c0c4b15
children ed26608920d4
files mod_storage_muc_log/mod_storage_muc_log.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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