changeset 10835 | 7dd7cdb43181 |
parent 10834 | 8889d5037aca |
child 10836 | 7395f6e68dba |
--- a/plugins/mod_csi_simple.lua Sat May 09 17:47:03 2020 +0200 +++ b/plugins/mod_csi_simple.lua Sun May 10 23:06:21 2020 +0200 @@ -16,8 +16,10 @@ local important_payloads = module:get_option_set("csi_important_payloads", { }); function is_important(stanza) --> boolean, reason: string - if not st.is_stanza(stanza) then + if type(stanza) == "string" then -- whitespace pings etc + return true, "raw data"; + elseif not st.is_stanza(stanza) then return true; end if stanza.attr.xmlns ~= nil then