mod_csi_simple: Explicitly consider errors important
authorKim Alvefur <zash@zash.se>
Sun, 26 Apr 2020 10:58:22 +0200
changeset 10773 8cecb85e4bc4
parent 10772 55a9e9bf6abb
child 10774 b4cbe72966c9
mod_csi_simple: Explicitly consider errors important This was already the case for presence and iq stanzas but not messages.
plugins/mod_csi_simple.lua
--- 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;