plugins/mod_csi_simple.lua
branch0.11
changeset 9636 fdefc43bffff
parent 9635 d6104aaf94bc
child 9648 e31547ab1ca2
--- a/plugins/mod_csi_simple.lua	Sat Nov 17 15:28:49 2018 +0100
+++ b/plugins/mod_csi_simple.lua	Sat Nov 17 15:36:10 2018 +0100
@@ -48,6 +48,9 @@
 
 module:hook("csi-is-stanza-important", function (event)
 	local stanza = event.stanza;
+	if not st.is_stanza(stanza) then
+		return true;
+	end
 	local st_name = stanza.name;
 	if not st_name then return false; end
 	local st_type = stanza.attr.type;