Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 9648:dfebf6cac027 0.11
mod_csi_simple: Don't set <delay> stamps on <iq> stanzas (fixes #1248)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 27 Nov 2018 18:56:22 +0100 |
parent | 9644:e31547ab1ca2 |
child | 9649:a20849226598 |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Mon Nov 26 19:48:07 2018 +0100 +++ b/plugins/mod_csi_simple.lua Tue Nov 27 18:56:22 2018 +0100 @@ -85,7 +85,7 @@ pump:flush(); send(stanza); else - if st.is_stanza(stanza) then + if st.is_stanza(stanza) and st.attr.xmlns == nil and st.name ~= "iq" then stanza = st.clone(stanza); stanza:add_direct_child(st.stanza("delay", {xmlns = "urn:xmpp:delay", from = bare_jid, stamp = dt.datetime()})); end