aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-27 14:46:15 +0200
committerKim Alvefur <zash@zash.se>2020-04-27 14:46:15 +0200
commitb966c976903eecced5a16826ef2da07cb011809f (patch)
treef4399fe25233ba01078317cf74c5780577a2129b
parent70410438020cc0646be1ec469dd88909da607b66 (diff)
downloadprosody-b966c976903eecced5a16826ef2da07cb011809f.tar.gz
prosody-b966c976903eecced5a16826ef2da07cb011809f.zip
mod_carbons: Check for and strip 'private' tag before stopping
This was explicit previously
-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;