equal
deleted
inserted
replaced
80 -- Carbons are sent to resources that have enabled it |
80 -- Carbons are sent to resources that have enabled it |
81 if session.want_carbons |
81 if session.want_carbons |
82 -- but not the resource that sent the message, or the one that it's directed to |
82 -- but not the resource that sent the message, or the one that it's directed to |
83 and session ~= target_session |
83 and session ~= target_session |
84 -- and isn't among the top resources that would receive the message per standard routing rules |
84 -- and isn't among the top resources that would receive the message per standard routing rules |
85 and (not c2s or session.priority ~= top_priority) then |
85 and (c2s or session.priority ~= top_priority) then |
86 carbon.attr.to = session.full_jid; |
86 carbon.attr.to = session.full_jid; |
87 module:log("debug", "Sending carbon to %s", session.full_jid); |
87 module:log("debug", "Sending carbon to %s", session.full_jid); |
88 session.send(carbon); |
88 session.send(carbon); |
89 end |
89 end |
90 end |
90 end |