From 3c22160354ee11ce92c0e337b6c753426b9cebdb Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 21 Sep 2009 17:57:28 +0100 Subject: mod_httpserver: Configurable filesystem path to serve from --- plugins/mod_httpserver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_httpserver.lua b/plugins/mod_httpserver.lua index 55ac3c7a..73357f1b 100644 --- a/plugins/mod_httpserver.lua +++ b/plugins/mod_httpserver.lua @@ -13,7 +13,7 @@ local open = io.open; local t_concat = table.concat; local check_http_path; -local http_base = "www_files"; +local http_base = config.get("*", "core", "http_path") or "www_files"; local response_403 = { status = "403 Forbidden", body = "

Invalid URL

Sorry, we couldn't find what you were looking for :(" }; local response_404 = { status = "404 Not Found", body = "

Page Not Found

Sorry, we couldn't find what you were looking for :(" }; -- cgit v1.2.3 From 5d726e1c28b1c004632fabeb49d1ad3a0741605e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 23 Sep 2009 13:17:13 +0100 Subject: mod_welcome: Change $user to $username in default welcome message (thanks to neustradamus for spotting) --- plugins/mod_welcome.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua index 5c0da8b8..e9444363 100644 --- a/plugins/mod_welcome.lua +++ b/plugins/mod_welcome.lua @@ -9,7 +9,7 @@ local config = require "core.configmanager"; local host = module:get_host(); -local welcome_text = config.get("*", "core", "welcome_message") or "Hello $user, welcome to the $host IM server!"; +local welcome_text = config.get("*", "core", "welcome_message") or "Hello $username, welcome to the $host IM server!"; local st = require "util.stanza"; -- cgit v1.2.3