aboutsummaryrefslogtreecommitdiffstats
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
commit5223386e0e8891163c040b7d4f1447678c3effd7 (patch)
treef625723b1bd3d37be4e5302d004497004b52ca34
parent223f743c4622928a61934de77bea0660b1a93ae4 (diff)
downloadprosody-5223386e0e8891163c040b7d4f1447678c3effd7.tar.gz
prosody-5223386e0e8891163c040b7d4f1447678c3effd7.zip
mod_carbons: Don't copy messages that should not be copied
The return statements were lost in d95e083931d1
-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