changeset 184:03cb7511ae54

mod_muc_log_http: ensure a theme was loaded when handling a http request
author Thilo Cestonaro <thilo@cestona.ro>
date Tue, 22 Jun 2010 11:00:26 +0200 (2010-06-22)
parents 9d4fd01443eb
children 3bce55e453b1
files mod_muc_log_http/muc_log_http/mod_muc_log_http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Tue Jun 22 10:56:49 2010 +0200
+++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Tue Jun 22 11:00:26 2010 +0200
@@ -692,7 +692,7 @@
 function handle_request(method, body, request)
 	local node, host, day = splitUrl(request.url.path);
 	
-	if muc_hosts ~= nil then
+	if muc_hosts ~= nil and html.doc ~= nil then
 	 	if node ~= nil and host ~= nil then
 			local bare = node .. "@" .. host;
 			if prosody.hosts[host] ~= nil and prosody.hosts[host].muc ~= nil then