mod_csi_simple: Don't set <delay> stamps on <iq> stanzas (fixes #1248) 0.11
authorKim Alvefur <zash@zash.se>
Tue, 27 Nov 2018 18:56:22 +0100
branch0.11
changeset 9652 dfebf6cac027
parent 9649 cc642c9c5ad5
child 9653 a20849226598
mod_csi_simple: Don't set <delay> stamps on <iq> stanzas (fixes #1248)
plugins/mod_csi_simple.lua
--- 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