projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f772fad
)
mod_welcome: Updated to use module:get_option instead of configmanager
author
Waqas Hussain
<waqas20@gmail.com>
Sat, 8 Aug 2009 18:38:02 +0000
(23:38 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Sat, 8 Aug 2009 18:38:02 +0000
(23:38 +0500)
plugins/mod_welcome.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_welcome.lua
b/plugins/mod_welcome.lua
index 5c0da8b87851292fe3eaec6fa5c42f46d2ae246f..cc50cba37b23c27d3e0e7af5af50488032f222c9 100644
(file)
--- 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 $user, welcome to the $host IM server!";
local st = require "util.stanza";