aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_carbons.lua4
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