Mercurial > prosody-modules
comparison mod_report_forward/mod_report_forward.lua @ 5916:1927d4d27a26
mod_report_forward: Some whitespace fixes
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 30 May 2024 17:55:48 +0100 |
parents | db5128d1a16c |
children |
comparison
equal
deleted
inserted
replaced
5915:db5128d1a16c | 5916:1927d4d27a26 |
---|---|
15 local cache_size = module:get_option_number("report_forward_contact_cache_size", 256); | 15 local cache_size = module:get_option_number("report_forward_contact_cache_size", 256); |
16 local report_to_origin = module:get_option_boolean("report_forward_to_origin", true); | 16 local report_to_origin = module:get_option_boolean("report_forward_to_origin", true); |
17 local contact_lookup_timeout = module:get_option_number("report_forward_contact_lookup_timeout", 180); | 17 local contact_lookup_timeout = module:get_option_number("report_forward_contact_lookup_timeout", 180); |
18 | 18 |
19 local body_template = module:get_option_string("report_forward_body_template", [[ | 19 local body_template = module:get_option_string("report_forward_body_template", [[ |
20 SPAM/ABUSE REPORT | 20 SPAM/ABUSE REPORT |
21 ----------------- | 21 ----------------- |
22 | 22 |
23 Reported JID: {reported_jid} | 23 Reported JID: {reported_jid} |
24 | 24 |
25 A user on our service has reported a message originating from the above JID on | 25 A user on our service has reported a message originating from the above JID on |
26 your server. | 26 your server. |
27 | 27 |
28 {reported_message_time&The reported message was sent at: {reported_message_time}} | 28 {reported_message_time&The reported message was sent at: {reported_message_time}} |
29 | 29 |
30 -- | 30 -- |
31 This message contains also machine-readable payloads, including XEP-0377, in case | 31 This message contains also machine-readable payloads, including XEP-0377, in case |
32 you want to automate handling of these reports. You can receive these reports | 32 you want to automate handling of these reports. You can receive these reports |
33 to a different address by setting 'spam-report-addresses' in your server | 33 to a different address by setting 'spam-report-addresses' in your server |
34 contact info configuration. For more information, see https://xmppbl.org/reports/ | 34 contact info configuration. For more information, see https://xmppbl.org/reports/ |
35 ]]):gsub("^%s+", ""):gsub("(%S)\n(%S)", "%1 %2"); | 35 ]]):gsub("^%s+", ""):gsub("(%S)\n(%S)", "%1 %2"); |