aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-26 10:58:22 +0200
committerKim Alvefur <zash@zash.se>2020-04-26 10:58:22 +0200
commitfc3bee71fdc30f8bc253d226124656582189ffa8 (patch)
tree8367533be0b3de4aa69d698a83f02707c2c5df4d
parent14083d021e63d308c445bb4713a706eb53273e90 (diff)
downloadprosody-fc3bee71fdc30f8bc253d226124656582189ffa8.tar.gz
prosody-fc3bee71fdc30f8bc253d226124656582189ffa8.zip
mod_csi_simple: Explicitly consider errors important
This was already the case for presence and iq stanzas but not messages.
-rw-r--r--plugins/mod_csi_simple.lua3
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;