Comparison

plugins/mod_watchregistrations.lua @ 1654:0ae73e3d306f

mod_watchregistrations: Updated to use module:get_option instead of configmanager
author Waqas Hussain <waqas20@gmail.com>
date Sat, 08 Aug 2009 23:55:25 +0500
parent 1522:569d58d21612
child 2923:b7049746bd29
comparison
equal deleted inserted replaced
1653:02a55ad3dce1 1654:0ae73e3d306f
7 -- 7 --
8 8
9 9
10 local host = module:get_host(); 10 local host = module:get_host();
11 11
12 local config = require "core.configmanager"; 12 local registration_watchers = module:get_option("registration_watchers")
13 or module:get_option("admins") or {};
13 14
14 local registration_watchers = config.get(host, "core", "registration_watchers") 15 local registration_alert = module:get_option("registration_notification") or "User $username just registered on $host from $ip";
15 or config.get(host, "core", "admins") or {};
16
17 local registration_alert = config.get(host, "core", "registration_notification") or "User $username just registered on $host from $ip";
18 16
19 local st = require "util.stanza"; 17 local st = require "util.stanza";
20 18
21 module:hook("user-registered", 19 module:hook("user-registered",
22 function (user) 20 function (user)