Software /
code /
prosody
Changeset
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 |
parents | 10768:55a9e9bf6abb |
children | 10770:b4cbe72966c9 |
files | plugins/mod_csi_simple.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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;