# HG changeset patch # User Kim Alvefur # Date 1542465370 -3600 # Node ID fdefc43bffffd6dbeda9e36161e6fbc5aaa6f229 # Parent d6104aaf94bcb06e53663d444e014a5de0af8936 mod_csi_simple: Consider non-stanza objects important Most cases are for keepalive or stream closing, where it needs to be flushed anyways. diff -r d6104aaf94bc -r fdefc43bffff plugins/mod_csi_simple.lua --- a/plugins/mod_csi_simple.lua Sat Nov 17 15:28:49 2018 +0100 +++ b/plugins/mod_csi_simple.lua Sat Nov 17 15:36:10 2018 +0100 @@ -48,6 +48,9 @@ module:hook("csi-is-stanza-important", function (event) local stanza = event.stanza; + if not st.is_stanza(stanza) then + return true; + end local st_name = stanza.name; if not st_name then return false; end local st_type = stanza.attr.type;