mod_welcome: Updated to use module:get_option instead of configmanager
authorWaqas Hussain <waqas20@gmail.com>
Sat, 8 Aug 2009 18:38:02 +0000 (23:38 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sat, 8 Aug 2009 18:38:02 +0000 (23:38 +0500)
plugins/mod_welcome.lua

index 5c0da8b87851292fe3eaec6fa5c42f46d2ae246f..cc50cba37b23c27d3e0e7af5af50488032f222c9 100644 (file)
@@ -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";