aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_watchregistrations.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-16 21:04:58 +0100
committerKim Alvefur <zash@zash.se>2021-01-16 21:04:58 +0100
commita8b0c56f656fcd3fca033dc5f3154a4d8a2464a2 (patch)
tree622eea2bf7444475db1e24fbe0d6bc49d980654d /plugins/mod_watchregistrations.lua
parentc4abd68e92a258750177f25dca38525fe3133063 (diff)
downloadprosody-a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2.tar.gz
prosody-a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2.zip
plugins: Use get_option_enum where appropriate
Diffstat (limited to 'plugins/mod_watchregistrations.lua')
-rw-r--r--plugins/mod_watchregistrations.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_watchregistrations.lua b/plugins/mod_watchregistrations.lua
index 21025360..d433d732 100644
--- a/plugins/mod_watchregistrations.lua
+++ b/plugins/mod_watchregistrations.lua
@@ -13,7 +13,7 @@ local jid_prep = require "prosody.util.jid".prep;
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";