# HG changeset patch # User Kim Alvefur # Date 1587991575 -7200 # Node ID a1b633ba9bd918b4a29e6eb73f0218ba45c9a3a2 # Parent e210afc9296ae6d9886cd204a1a2e6e8e1d5e2c0 mod_carbons: Check for and strip 'private' tag before stopping This was explicit previously diff -r e210afc9296a -r a1b633ba9bd9 plugins/mod_carbons.lua --- a/plugins/mod_carbons.lua Mon Apr 27 14:43:54 2020 +0200 +++ b/plugins/mod_carbons.lua Mon Apr 27 14:46:15 2020 +0200 @@ -92,13 +92,14 @@ if not should then module:log("debug", "Not copying stanza: %s (%s)", stanza:top_tag(), why); - return; - elseif why == "private" and not c2s then + if why == "private" and not c2s then stanza:maptags(function(tag) if not ( tag.attr.xmlns == xmlns_carbons and tag.name == "private" ) then return tag; end end); + end + return; end local carbon;