diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-27 14:43:54 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-27 14:43:54 +0200 |
commit | 70410438020cc0646be1ec469dd88909da607b66 (patch) | |
tree | f625723b1bd3d37be4e5302d004497004b52ca34 /plugins/mod_carbons.lua | |
parent | 47bd5544484dea585a4daa78d74197afcada3ff8 (diff) | |
download | prosody-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.lua | 1 |
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 |