# HG changeset patch # User Kim Alvefur # Date 1546805390 -3600 # Node ID 150e9574c149e3e98fbf902833d580fcdb99d03e # Parent ab12fd48e124a77a9884cc99de1b7ca7999d0e83 mod_csi_simple: Unpack Carbons-forwarded messages (fixes part of #1250) diff -r ab12fd48e124 -r 150e9574c149 plugins/mod_csi_simple.lua --- a/plugins/mod_csi_simple.lua Sun Jan 06 21:08:11 2019 +0100 +++ b/plugins/mod_csi_simple.lua Sun Jan 06 21:09:50 2019 +0100 @@ -66,6 +66,10 @@ if stanza:get_child("sent", "urn:xmpp:carbons:2") then return true; end + local forwarded = stanza:find("{urn:xmpp:carbons:2}received/{urn:xmpp:forward:0}/{jabber:client}message"); + if forwarded then + stanza = forwarded; + end if stanza:get_child("body") then return true; end