diff options
author | Kim Alvefur <zash@zash.se> | 2020-04-26 10:58:22 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-04-26 10:58:22 +0200 |
commit | 785473050ad6d7cb841b1b53d49b985fdd8025dd (patch) | |
tree | 8367533be0b3de4aa69d698a83f02707c2c5df4d /plugins | |
parent | fcb1c5ba2c0c6d75f0ce758d7a01105e92634aba (diff) | |
download | prosody-785473050ad6d7cb841b1b53d49b985fdd8025dd.tar.gz prosody-785473050ad6d7cb841b1b53d49b985fdd8025dd.zip |
mod_csi_simple: Explicitly consider errors important
This was already the case for presence and iq stanzas but not messages.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_csi_simple.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index cc15f033..df7ce045 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -23,6 +23,9 @@ module:hook("csi-is-stanza-important", function (event) local st_name = stanza.name; if not st_name then return false; end local st_type = stanza.attr.type; + if st_type == "error" then + return true; + end if st_name == "presence" then if st_type == nil or st_type == "unavailable" then return false; |