From a8b0c56f656fcd3fca033dc5f3154a4d8a2464a2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 16 Jan 2021 21:04:58 +0100 Subject: plugins: Use get_option_enum where appropriate --- plugins/mod_watchregistrations.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_watchregistrations.lua') 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"; -- cgit v1.2.3