aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-27 18:56:22 +0100
committerKim Alvefur <zash@zash.se>2018-11-27 18:56:22 +0100
commitdd67ae9bca97cd7137adcc216a1be91fed09632d (patch)
tree1ac45c24d95d1582c2779b26f01e75965dc5e79d /plugins
parent6baeae7c8c8fabf770111e0668164b3dd779b65e (diff)
downloadprosody-dd67ae9bca97cd7137adcc216a1be91fed09632d.tar.gz
prosody-dd67ae9bca97cd7137adcc216a1be91fed09632d.zip
mod_csi_simple: Don't set <delay> stamps on <iq> stanzas (fixes #1248)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_csi_simple.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index f3df5734..551b13c0 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -85,7 +85,7 @@ module:hook("csi-client-inactive", function (event)
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