Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 9632:fdefc43bffff 0.11
mod_csi_simple: Consider non-stanza objects important
Most cases are for keepalive or stream closing, where it needs to be
flushed anyways.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 17 Nov 2018 15:36:10 +0100 |
parent | 9631:d6104aaf94bc |
child | 9644:e31547ab1ca2 |
line wrap: on
line diff
--- 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;