Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 10769:8cecb85e4bc4
mod_csi_simple: Explicitly consider errors important
This was already the case for presence and iq stanzas but not messages.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Apr 2020 10:58:22 +0200 |
parent | 10733:89e0f5cb60a1 |
child | 10770:b4cbe72966c9 |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Thu Apr 23 19:24:27 2020 +0200 +++ b/plugins/mod_csi_simple.lua Sun Apr 26 10:58:22 2020 +0200 @@ -23,6 +23,9 @@ 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;