Software /
code /
prosody
Changeset
10781:f7e8d299513f
mod_carbons: Carbon incoming message delivery failure reports
Ensures that all your clients know about sent messages that failed.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Apr 2020 20:23:50 +0200 |
parents | 10780:22bbc644c5eb |
children | 10782:6b776f80b96e |
files | plugins/mod_carbons.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_carbons.lua Sun Apr 26 21:11:00 2020 +0200 +++ b/plugins/mod_carbons.lua Sun Apr 26 20:23:50 2020 +0200 @@ -43,6 +43,10 @@ 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