mod_muc_log_http/muc_log_http/mod_muc_log_http.lua
changeset 579 513aa6fed9e9
parent 578 1a575bcbc843
child 580 10a9538f41f1
equal deleted inserted replaced
578:1a575bcbc843 579:513aa6fed9e9
   265 	local attributes = nil;
   265 	local attributes = nil;
   266 	local since = "";
   266 	local since = "";
   267 	local to = "";
   267 	local to = "";
   268 	local topic = "";
   268 	local topic = "";
   269 
   269 
       
   270 	if not(prosody.hosts[host] and prosody.hosts[host].muc and prosody.hosts[host].muc.rooms[bareRoomJid]) then
       
   271 		return;
       
   272 	end
       
   273 
   270 	path = path:gsub("/[^/]*$", "");
   274 	path = path:gsub("/[^/]*$", "");
   271 	attributes = lfs.attributes(path);
   275 	attributes = lfs.attributes(path);
   272 	do
   276 	do
   273 		local found = 0;
   277 		local found = 0;
   274 		for jid, room in pairs(prosody.hosts[host].muc.rooms) do
   278 		for jid, room in pairs(prosody.hosts[host].muc.rooms) do