Mercurial > prosody-modules
diff mod_watchuntrusted/mod_watchuntrusted.lua @ 3022:3996437ff64f
mod_watchuntrusted: Actually add the untrusted_message_type option
Left out of changeset ec671ad1a8a9 by mistake
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 20 May 2018 17:19:46 +0200 |
parents | ec671ad1a8a9 |
children | 0e78523f8c20 |
line wrap: on
line diff
--- a/mod_watchuntrusted/mod_watchuntrusted.lua Sun May 20 17:09:10 2018 +0200 +++ b/mod_watchuntrusted/mod_watchuntrusted.lua Sun May 20 17:19:46 2018 +0200 @@ -7,6 +7,8 @@ local untrusted_fail_watchers = module:get_option_set("untrusted_fail_watchers", module:get_option("admins", {})) / jid_prep; local untrusted_fail_notification = module:get_option("untrusted_fail_notification", "Establishing a secure connection from $from_host to $to_host failed. Certificate hash: $sha256. $errors"); +local msg_type = module:get_option_string("untrusted_message_type", "chat"); + local st = require "util.stanza"; local notified_about_already = { };