# HG changeset patch # User Kim Alvefur # Date 1587991434 -7200 # Node ID e210afc9296ae6d9886cd204a1a2e6e8e1d5e2c0 # Parent 0b0fe73199d25636404abe2c438cbe5c4613a078 mod_carbons: Don't copy messages that should not be copied The return statements were lost in d95e083931d1 diff -r 0b0fe73199d2 -r e210afc9296a plugins/mod_carbons.lua --- a/plugins/mod_carbons.lua Sun Apr 26 21:03:40 2020 +0200 +++ b/plugins/mod_carbons.lua Mon Apr 27 14:43:54 2020 +0200 @@ -92,6 +92,7 @@ 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