Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
10768:55a9e9bf6abb | 10769:8cecb85e4bc4 |
---|---|
21 return true; | 21 return true; |
22 end | 22 end |
23 local st_name = stanza.name; | 23 local st_name = stanza.name; |
24 if not st_name then return false; end | 24 if not st_name then return false; end |
25 local st_type = stanza.attr.type; | 25 local st_type = stanza.attr.type; |
26 if st_type == "error" then | |
27 return true; | |
28 end | |
26 if st_name == "presence" then | 29 if st_name == "presence" then |
27 if st_type == nil or st_type == "unavailable" then | 30 if st_type == nil or st_type == "unavailable" then |
28 return false; | 31 return false; |
29 end | 32 end |
30 return true; | 33 return true; |