changeset 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 4cec8b7aed6d
children 38365c1f1fe4
files mod_watchuntrusted/mod_watchuntrusted.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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 = { };