mod_http_muc_log/mod_http_muc_log.lua
changeset 3564 0ebb7112c102
parent 3490 887ce59cf396
child 3582 ea63dc0cc824
equal deleted inserted replaced
3563:d56cb74a0db8 3564:0ebb7112c102
   229 local function logs_page(event, path)
   229 local function logs_page(event, path)
   230 	local request, response = event.request, event.response;
   230 	local request, response = event.request, event.response;
   231 
   231 
   232 	-- FIXME In the year, 105105, if MUC is still alive,
   232 	-- FIXME In the year, 105105, if MUC is still alive,
   233 	-- if Prosody can survive... Enjoy this Y10k bug
   233 	-- if Prosody can survive... Enjoy this Y10k bug
   234 	local room, date = path:match("^(.-)/(%d%d%d%d%-%d%d%-%d%d)$");
   234 	local room, date = path:match("^(.-)/(%d%d%d%d%-%d%d%-%d%d)/?$");
   235 	room = nodeprep(room);
   235 	room = nodeprep(room);
   236 	if not room then
   236 	if not room then
   237 		return years_page(event, path);
   237 		return years_page(event, path);
   238 	end
   238 	end
   239 	local is_open = open_room(room);
   239 	local is_open = open_room(room);