Comparison

plugins/mod_csi_simple.lua @ 9769:150e9574c149 0.11

mod_csi_simple: Unpack Carbons-forwarded messages (fixes part of #1250)
author Kim Alvefur <zash@zash.se>
date Sun, 06 Jan 2019 21:09:50 +0100
parent 9768:ab12fd48e124
child 9770:76cb409db537
comparison
equal deleted inserted replaced
9768:ab12fd48e124 9769:150e9574c149
64 return false; 64 return false;
65 end 65 end
66 if stanza:get_child("sent", "urn:xmpp:carbons:2") then 66 if stanza:get_child("sent", "urn:xmpp:carbons:2") then
67 return true; 67 return true;
68 end 68 end
69 local forwarded = stanza:find("{urn:xmpp:carbons:2}received/{urn:xmpp:forward:0}/{jabber:client}message");
70 if forwarded then
71 stanza = forwarded;
72 end
69 if stanza:get_child("body") then 73 if stanza:get_child("body") then
70 return true; 74 return true;
71 end 75 end
72 return false; 76 return false;
73 end 77 end