Changeset

9650:db6bcafd76c9 0.11

mod_csi_simple: Fix autocompletion mistake
author Kim Alvefur <zash@zash.se>
date Tue, 27 Nov 2018 19:15:33 +0100
parents 9649:a20849226598
children 9651:989cf872d5c0
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	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