Changeset

381:f932dc371ce7

mod_muc_log_http: Generate main component list page even when there are no components defined.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 25 Jul 2011 02:21:40 +0500
parents 380:5ef71af77ae2
children 382:19469f3ad6d6
files mod_muc_log_http/muc_log_http/mod_muc_log_http.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
@@ -137,9 +137,7 @@
 	for component,muc_host in pairs(muc_hosts or {}) do
 		components = components .. html.components.bit:gsub("###COMPONENT###", component);
 	end
-	if components ~= "" then
-		return html.components.body:gsub("###COMPONENTS_STUFF###", components);
-	end
+	return html.components.body:gsub("###COMPONENTS_STUFF###", components);
 end
 
 local function generateRoomListSiteContent(component)