aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_carbons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_carbons.lua')
-rw-r--r--plugins/mod_carbons.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua
index 67f345f1..fad47a7c 100644
--- a/plugins/mod_carbons.lua
+++ b/plugins/mod_carbons.lua
@@ -92,13 +92,14 @@ 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
+ 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;