diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-26 20:23:50 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-26 20:23:50 +0200 |
commit | 9e3ef1c01bc14f51a41e5eb413cb05118489bd7f (patch) | |
tree | 83bc63dc8243842fbb5f9ae34f036e5fad91332c /plugins/mod_carbons.lua | |
parent | bec170ac73c3b7763cb66909c0301d11d316ff47 (diff) | |
download | prosody-9e3ef1c01bc14f51a41e5eb413cb05118489bd7f.tar.gz prosody-9e3ef1c01bc14f51a41e5eb413cb05118489bd7f.zip |
mod_carbons: Carbon incoming message delivery failure reports
Ensures that all your clients know about sent messages that failed.
Diffstat (limited to 'plugins/mod_carbons.lua')
-rw-r--r-- | plugins/mod_carbons.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua index 09518bf7..9befc9cb 100644 --- a/plugins/mod_carbons.lua +++ b/plugins/mod_carbons.lua @@ -43,6 +43,10 @@ local function should_copy(stanza, c2s, user_bare) return true, "type"; end + if st_type == "error" and not c2s and not (stanza.attr.from or ""):find("/") then + return true, "bounce"; + end + return false, "default"; end |