# HG changeset patch # User Kim Alvefur # Date 1348272381 -7200 # Node ID 0ef11dee70509bf8ab9264a8056ba85ea507a233 # Parent a86131581180ea7f8768717d71b92fc89ee8fa3a mod_carbons: Fix logic, top resources should only be excluded for incoming messages diff -r a86131581180 -r 0ef11dee7050 mod_carbons/mod_carbons.lua --- a/mod_carbons/mod_carbons.lua Sat Sep 22 01:56:59 2012 +0200 +++ b/mod_carbons/mod_carbons.lua Sat Sep 22 02:06:21 2012 +0200 @@ -82,7 +82,7 @@ -- but not the resource that sent the message, or the one that it's directed to and session ~= target_session -- and isn't among the top resources that would receive the message per standard routing rules - and (not c2s or session.priority ~= top_priority) then + and (c2s or session.priority ~= top_priority) then carbon.attr.to = session.full_jid; module:log("debug", "Sending carbon to %s", session.full_jid); session.send(carbon);