Software /
code /
prosody
Diff
plugins/mod_watchregistrations.lua @ 13202:173038306750
plugins: Use get_option_enum where appropriate
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 16 Jan 2021 21:04:58 +0100 |
parent | 12977:74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_watchregistrations.lua Sat Jan 16 20:40:14 2021 +0100 +++ b/plugins/mod_watchregistrations.lua Sat Jan 16 21:04:58 2021 +0100 @@ -13,7 +13,7 @@ local registration_watchers = module:get_option_set("registration_watchers", module:get_option("admins", {})) / jid_prep; local registration_from = module:get_option_string("registration_from", host); local registration_notification = module:get_option_string("registration_notification", "User $username just registered on $host from $ip"); -local msg_type = module:get_option_string("registration_notification_type", "chat"); +local msg_type = module:get_option_enum("registration_notification_type", "chat", "normal", "headline"); local st = require "prosody.util.stanza";