author | Kim Alvefur <zash@zash.se> |
Tue, 27 Nov 2018 19:15:33 +0100 | |
branch | 0.11 |
changeset 9654 | db6bcafd76c9 |
parent 9653 | a20849226598 |
child 9655 | 989cf872d5c0 |
--- a/plugins/mod_csi_simple.lua Tue Nov 27 19:05:11 2018 +0100 +++ b/plugins/mod_csi_simple.lua Tue Nov 27 19:15:33 2018 +0100 @@ -86,7 +86,7 @@ pump:flush(); send(stanza); else - if st.is_stanza(stanza) and st.attr.xmlns == nil and st.name ~= "iq" then + if st.is_stanza(stanza) and stanza.attr.xmlns == nil and stanza.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