Comparison

plugins/mod_welcome.lua @ 2056:c781a949661d

mod_welcome: Change $user to $username in default welcome message (thanks to chris for spotting)
author Waqas Hussain <waqas20@gmail.com>
date Tue, 27 Oct 2009 01:15:05 +0500
parent 1816:1c0bde3db7d8
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
2055:ed3910860d11 2056:c781a949661d
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local host = module:get_host(); 9 local host = module:get_host();
10 local welcome_text = module:get_option("welcome_message") or "Hello $user, welcome to the $host IM server!"; 10 local welcome_text = module:get_option("welcome_message") or "Hello $username, welcome to the $host IM server!";
11 11
12 local st = require "util.stanza"; 12 local st = require "util.stanza";
13 13
14 module:hook("user-registered", 14 module:hook("user-registered",
15 function (user) 15 function (user)