Software /
code /
prosody
Comparison
plugins/mod_csi_simple.lua @ 10771:c562edcf51bf
mod_csi_simple: Clarify what might not be stanzas here
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Apr 2020 11:13:25 +0200 |
parent | 10770:b4cbe72966c9 |
child | 10772:31e702c5f475 |
comparison
equal
deleted
inserted
replaced
10770:b4cbe72966c9 | 10771:c562edcf51bf |
---|---|
16 local important_payloads = module:get_option_set("csi_important_payloads", { }); | 16 local important_payloads = module:get_option_set("csi_important_payloads", { }); |
17 | 17 |
18 module:hook("csi-is-stanza-important", function (event) | 18 module:hook("csi-is-stanza-important", function (event) |
19 local stanza = event.stanza; | 19 local stanza = event.stanza; |
20 if not st.is_stanza(stanza) then | 20 if not st.is_stanza(stanza) then |
21 -- whitespace pings etc | |
21 return true; | 22 return true; |
22 end | 23 end |
23 if stanza.attr.xmlns ~= nil then | 24 if stanza.attr.xmlns ~= nil then |
24 -- stream errors, stream management etc | 25 -- stream errors, stream management etc |
25 return true; | 26 return true; |