mod_csi_simple: Clarify what might not be stanzas here

This commit is contained in:
Kim Alvefur 2020-04-26 11:13:25 +02:00
parent ea91b4cc7b
commit 37a42fa605

View file

@ -18,6 +18,7 @@ local important_payloads = module:get_option_set("csi_important_payloads", { });
module:hook("csi-is-stanza-important", function (event)
local stanza = event.stanza;
if not st.is_stanza(stanza) then
-- whitespace pings etc
return true;
end
if stanza.attr.xmlns ~= nil then