mod_watchregistrations: Use type-specific config API for 'registration_notification'
authorKim Alvefur <zash@zash.se>
Fri, 11 Mar 2016 13:37:18 +0100
changeset 7271 29861845e0e0
parent 7270 8ad2dbc4fdb6
child 7272 cde4ef90cf3d
child 7274 dae47cd774ac
mod_watchregistrations: Use type-specific config API for 'registration_notification'
plugins/mod_watchregistrations.lua
--- a/plugins/mod_watchregistrations.lua	Fri Mar 11 13:36:48 2016 +0100
+++ b/plugins/mod_watchregistrations.lua	Fri Mar 11 13:37:18 2016 +0100
@@ -11,7 +11,7 @@
 local jid_prep = require "util.jid".prep;
 
 local registration_watchers = module:get_option_set("registration_watchers", module:get_option("admins", {})) / jid_prep;
-local registration_notification = module:get_option("registration_notification", "User $username just registered on $host from $ip");
+local registration_notification = module:get_option_string("registration_notification", "User $username just registered on $host from $ip");
 
 local st = require "util.stanza";