Software /
code /
prosody-modules
Diff
mod_muc_log/mod_muc_log.lua @ 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 |
parent | 52:11d1d4ff8037 |
child | 54:f15108153710 |
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