# HG changeset patch # User Kim Alvefur # Date 1377104596 -7200 # Node ID 8ceab233121660c4033250264f7666b99b4efc41 # Parent 2b62a3b76d7688eb4b483daf7ce22f5fd8488b63 mod_carbons: Fix handling diff -r 2b62a3b76d76 -r 8ceab2331216 mod_carbons/mod_carbons.lua --- a/mod_carbons/mod_carbons.lua Fri Aug 16 00:25:37 2013 +0200 +++ b/mod_carbons/mod_carbons.lua Wed Aug 21 19:03:16 2013 +0200 @@ -79,8 +79,9 @@ if not c2s and stanza:get_child("private", xmlns_carbons) then stanza:maptags(function(tag) - return tag.attr.xmlns == xmlns_carbons - and tag.name == "private" and tag or nil; + if not ( tag.attr.xmlns == xmlns_carbons and tag.name == "private" ) then + return tag; + end end); module:log("debug", "Message tagged private, ignoring"); return