Software /
code /
prosody-modules
Comparison
mod_muc_log/mod_muc_log.lua @ 54:f15108153710
Fix some muclogging -> muc_log issues I brought back in the merge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 18 Oct 2009 23:26:15 +0100 |
parent | 53:5c4dd39a1e99 |
child | 55:d9749ed44f6e |
comparison
equal
deleted
inserted
replaced
53:5c4dd39a1e99 | 54:f15108153710 |
---|---|
268 local query = splitQuery(request.url.query); | 268 local query = splitQuery(request.url.query); |
269 local node, host = grepRoomJid(request.url.path); | 269 local node, host = grepRoomJid(request.url.path); |
270 | 270 |
271 if validateLogFolder() == false then | 271 if validateLogFolder() == false then |
272 return createDoc([[ | 272 return createDoc([[ |
273 Muclogging is not configured correctly. Add a section to Host * "muc_log" and configure the value for the logging "folder".<br /> | 273 MUC logging is not configured correctly. Add a section to Host * "muc_log" and configure the value for the logging "folder".<br /> |
274 Like:<br /> | 274 Like:<br /> |
275 Host "*"<br /> | 275 Host "*"<br /> |
276 ....<br /> | 276 ....<br /> |
277 muc_log = {<br /> | 277 muc_log = {<br /> |
278 folder = "/opt/local/var/log/prosody/rooms";<br /> | 278 folder = "/opt/local/var/log/prosody/rooms";<br /> |
301 end | 301 end |
302 return; | 302 return; |
303 end | 303 end |
304 | 304 |
305 function module.load() | 305 function module.load() |
306 config = config_get("*", "core", "muclogging"); | 306 config = config_get("*", "core", "muc_log"); |
307 -- module:log("debug", "muclogging config: \n%s", dump(config)); | 307 -- module:log("debug", "muc_log config: \n%s", dump(config)); |
308 | 308 |
309 httpserver.new_from_config({ config.http_port or true }, handle_request, { base = "muc_log" }); | 309 httpserver.new_from_config({ config.http_port or true }, handle_request, { base = "muc_log" }); |
310 return validateLogFolder(); | 310 return validateLogFolder(); |
311 end | 311 end |
312 | 312 |