Diff

plugins/mod_csi_simple.lua @ 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
parent 9649:a20849226598
child 9651:989cf872d5c0
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