mod_csi_simple: Explicitly mention iq stanzas
authorKim Alvefur <zash@zash.se>
Sun, 26 Apr 2020 11:40:48 +0200
changeset 10776 31e702c5f475
parent 10775 c562edcf51bf
child 10777 3e1046b39484
mod_csi_simple: Explicitly mention iq stanzas Should be more obvious that all iq stanzas are considered important. Changes behavior for invalid things in the default namespace.
plugins/mod_csi_simple.lua
--- a/plugins/mod_csi_simple.lua	Sun Apr 26 11:13:25 2020 +0200
+++ b/plugins/mod_csi_simple.lua	Sun Apr 26 11:40:48 2020 +0200
@@ -65,8 +65,9 @@
 			end
 		end
 		return false;
+	elseif st_name == "iq" then
+		return true;
 	end
-	return true;
 end, -1);
 
 local function with_timestamp(stanza, from)