mod_watchuntrusted/mod_watchuntrusted.lua
changeset 3026 3996437ff64f
parent 3024 ec671ad1a8a9
child 3224 0e78523f8c20
equal deleted inserted replaced
3025:4cec8b7aed6d 3026:3996437ff64f
     4 local secure_domains, insecure_domains =
     4 local secure_domains, insecure_domains =
     5 	module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items;
     5 	module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items;
     6 
     6 
     7 local untrusted_fail_watchers = module:get_option_set("untrusted_fail_watchers", module:get_option("admins", {})) / jid_prep;
     7 local untrusted_fail_watchers = module:get_option_set("untrusted_fail_watchers", module:get_option("admins", {})) / jid_prep;
     8 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");
     8 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");
       
     9 
       
    10 local msg_type = module:get_option_string("untrusted_message_type", "chat");
     9 
    11 
    10 local st = require "util.stanza";
    12 local st = require "util.stanza";
    11 
    13 
    12 local notified_about_already = { };
    14 local notified_about_already = { };
    13 
    15