mod_muc_log/mod_muc_log.lua
changeset 53 5c4dd39a1e99
parent 52 11d1d4ff8037
child 54 f15108153710
--- a/mod_muc_log/mod_muc_log.lua	Mon Oct 19 00:02:32 2009 +0200
+++ b/mod_muc_log/mod_muc_log.lua	Sun Oct 18 23:24:42 2009 +0100
@@ -303,12 +303,10 @@
 end
 
 function module.load()
-	config = config_get("*", "core", "muc_log");
-	-- module:log("debug", "muc_log config: \n%s", dump(config));
+	config = config_get("*", "core", "muclogging");
+	-- module:log("debug", "muclogging config: \n%s", dump(config));
 	
-	if config.http_port ~= nil then
-		httpserver.new_from_config({ config.http_port }, "muc_log", handle_request);
-	end
+	httpserver.new_from_config({ config.http_port or true }, handle_request, { base = "muc_log" });
 	return validateLogFolder();
 end