aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_carbons.lua
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
commit95f4c6a7496cdf4033985ca6dc539ee3e08874a2 (patch)
treef4399fe25233ba01078317cf74c5780577a2129b /plugins/mod_carbons.lua
parent5223386e0e8891163c040b7d4f1447678c3effd7 (diff)
downloadprosody-95f4c6a7496cdf4033985ca6dc539ee3e08874a2.tar.gz
prosody-95f4c6a7496cdf4033985ca6dc539ee3e08874a2.zip
mod_carbons: Check for and strip 'private' tag before stopping
This was explicit previously
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;