aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_welcome.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_welcome.lua')
-rw-r--r--plugins/mod_welcome.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_welcome.lua b/plugins/mod_welcome.lua
index 5c0da8b8..edcfbd8c 100644
--- a/plugins/mod_welcome.lua
+++ b/plugins/mod_welcome.lua
@@ -6,10 +6,8 @@
-- COPYING file in the source package for more information.
--
-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 = module:get_option("welcome_message") or "Hello $username, welcome to the $host IM server!";
local st = require "util.stanza";