Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3021:4cec8b7aed6d | 3022: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 |
