Changeset

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
parents 9645:cc642c9c5ad5
children 9649:a20849226598
files plugins/mod_csi_simple.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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