aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_carbons.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-27 14:43:54 +0200
committerKim Alvefur <zash@zash.se>2020-04-27 14:43:54 +0200
commit70410438020cc0646be1ec469dd88909da607b66 (patch)
treef625723b1bd3d37be4e5302d004497004b52ca34 /plugins/mod_carbons.lua
parent47bd5544484dea585a4daa78d74197afcada3ff8 (diff)
downloadprosody-70410438020cc0646be1ec469dd88909da607b66.tar.gz
prosody-70410438020cc0646be1ec469dd88909da607b66.zip
mod_carbons: Don't copy messages that should not be copied
The return statements were lost in d95e083931d1
Diffstat (limited to 'plugins/mod_carbons.lua')
-rw-r--r--plugins/mod_carbons.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua
index c5efce39..67f345f1 100644
--- a/plugins/mod_carbons.lua
+++ b/plugins/mod_carbons.lua
@@ -92,6 +92,7 @@ local function message_handler(event, c2s)
if not should then
module:log("debug", "Not copying stanza: %s (%s)", stanza:top_tag(), why);
+ return;
elseif why == "private" and not c2s then
stanza:maptags(function(tag)
if not ( tag.attr.xmlns == xmlns_carbons and tag.name == "private" ) then