mod_welcome: Updated to use module:get_option instead of configmanager

Sat, 08 Aug 2009 23:38:02 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sat, 08 Aug 2009 23:38:02 +0500
changeset 1650
b010d6711527
parent 1649
a6698ab04039
child 1651
6954d8f314a1

mod_welcome: Updated to use module:get_option instead of configmanager

plugins/mod_welcome.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_welcome.lua	Sat Aug 08 23:23:21 2009 +0500
+++ b/plugins/mod_welcome.lua	Sat Aug 08 23:38:02 2009 +0500
@@ -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 $user, welcome to the $host IM server!";
 
 local st = require "util.stanza";
 

mercurial