# HG changeset patch # User Waqas Hussain # Date 1327447277 -18000 # Node ID 513aa6fed9e9558f487d7a34ea797be03fa25e7a # Parent 1a575bcbc8432dd3fd618d8be851725d4c9b9ce9 mod_muc_log_http: Don't return a page on missing rooms. diff -r 1a575bcbc843 -r 513aa6fed9e9 mod_muc_log_http/muc_log_http/mod_muc_log_http.lua --- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Wed Jan 25 04:20:08 2012 +0500 +++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Wed Jan 25 04:21:17 2012 +0500 @@ -267,6 +267,10 @@ local to = ""; local topic = ""; + if not(prosody.hosts[host] and prosody.hosts[host].muc and prosody.hosts[host].muc.rooms[bareRoomJid]) then + return; + end + path = path:gsub("/[^/]*$", ""); attributes = lfs.attributes(path); do