mod_http_muc_log/mod_http_muc_log.lua
changeset 1553 1398d2bbcd42
parent 1552 81b3599c02fb
child 1554 8059b7cdaf17
equal deleted inserted replaced
1552:81b3599c02fb 1553:1398d2bbcd42
   150 	local next_day;
   150 	local next_day;
   151 	repeat
   151 	repeat
   152 		local iter = archive:find(room, {
   152 		local iter = archive:find(room, {
   153 			["start"] = next_day;
   153 			["start"] = next_day;
   154 			limit = 1;
   154 			limit = 1;
       
   155 			with = "message<groupchat";
   155 		})
   156 		})
   156 		if not iter then break end
   157 		if not iter then break end
   157 		next_day = nil;
   158 		next_day = nil;
   158 		for key, message, when in iter do
   159 		for key, message, when in iter do
   159 			next_day = datetime.date(when);
   160 			next_day = datetime.date(when);