diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-26 11:13:01 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-26 11:13:01 +0200 |
commit | ba0fe2779ae0826e8cb5a3f31e319d7f30e9f8e5 (patch) | |
tree | d0cabc3d6d162d03479051a2e9441238b62e8481 /plugins/mod_csi_simple.lua | |
parent | 785473050ad6d7cb841b1b53d49b985fdd8025dd (diff) | |
download | prosody-ba0fe2779ae0826e8cb5a3f31e319d7f30e9f8e5.tar.gz prosody-ba0fe2779ae0826e8cb5a3f31e319d7f30e9f8e5.zip |
mod_csi_simple: Consider nonzas important
This case was previously handled by fall-trough at the end of the
function.
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r-- | plugins/mod_csi_simple.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index df7ce045..e509bef8 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -20,6 +20,10 @@ module:hook("csi-is-stanza-important", function (event) if not st.is_stanza(stanza) then return true; end + if stanza.attr.xmlns ~= nil then + -- stream errors, stream management etc + return true; + end local st_name = stanza.name; if not st_name then return false; end local st_type = stanza.attr.type; |