mod_watchregistrations: Use type-specific config API for 'registration_notification'
authorKim Alvefur <zash@zash.se>
Fri, 11 Mar 2016 12:37:18 +0000 (13:37 +0100)
committerKim Alvefur <zash@zash.se>
Fri, 11 Mar 2016 12:37:18 +0000 (13:37 +0100)
plugins/mod_watchregistrations.lua

index b7be5daf8e8a945aa29de64e82b57d762a089a7f..1e696f30e1f72329b935cf5cdebdec067025054f 100644 (file)
@@ -11,7 +11,7 @@ local host = module:get_host();
 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";