Software /
code /
prosody
Changeset
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 |
parents | 1653:02a55ad3dce1 |
children | 1655:dc42bf326713 |
files | plugins/mod_watchregistrations.lua |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_watchregistrations.lua Sat Aug 08 23:52:36 2009 +0500 +++ b/plugins/mod_watchregistrations.lua Sat Aug 08 23:55:25 2009 +0500 @@ -9,12 +9,10 @@ local host = module:get_host(); -local config = require "core.configmanager"; +local registration_watchers = module:get_option("registration_watchers") + or module:get_option("admins") or {}; -local registration_watchers = config.get(host, "core", "registration_watchers") - or config.get(host, "core", "admins") or {}; - -local registration_alert = config.get(host, "core", "registration_notification") or "User $username just registered on $host from $ip"; +local registration_alert = module:get_option("registration_notification") or "User $username just registered on $host from $ip"; local st = require "util.stanza";