plugins/mod_carbons.lua
changeset 10789 e210afc9296a
parent 10786 6b776f80b96e
child 10790 a1b633ba9bd9
--- 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