# HG changeset patch # User Waqas Hussain # Date 1311542500 -18000 # Node ID fec9bc52aa422a4242a09d50d917990095b131ab # Parent 79983e658bb5f2b51c6d3303e5edfad7026e7e66 mod_muc_log_http: Generate component room list page even when there are no rooms. diff -r 79983e658bb5 -r fec9bc52aa42 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 Mon Jul 25 02:21:40 2011 +0500 +++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua Mon Jul 25 02:21:40 2011 +0500 @@ -116,9 +116,7 @@ rooms = rooms .. html.rooms.bit:gsub("###ROOM###", node):gsub("###COMPONENT###", component); end end - if rooms ~= "" then - return html.rooms.body:gsub("###ROOMS_STUFF###", rooms):gsub("###COMPONENT###", component); - end + return html.rooms.body:gsub("###ROOMS_STUFF###", rooms):gsub("###COMPONENT###", component); end end