changeset 53:5c4dd39a1e99

mod_muc_log: Use new httpserver.new_from_config syntax
author Matthew Wild <mwild1@gmail.com>
date Sun, 18 Oct 2009 23:24:42 +0100
parents 11d1d4ff8037
children f15108153710
files mod_muc_log/mod_muc_log.lua
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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