Software /
code /
prosody
Changeset
9358:bbc24fc734da
mod_scansion_record: Only record stanzas in the default namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 14:19:22 +0200 |
parents | 9357:0ae20fb3d4c6 |
children | 9359:dc55d7d2798b |
files | plugins/mod_scansion_record.lua |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua Sat Sep 22 14:18:39 2018 +0200 +++ b/plugins/mod_scansion_record.lua Sat Sep 22 14:19:22 2018 +0200 @@ -24,12 +24,16 @@ end local function record_stanza_in(stanza, session) - record_stanza(stanza, session, "sends") + if stanza.attr.xmlns == nil then + record_stanza(stanza, session, "sends") + end return stanza; end local function record_stanza_out(stanza, session) - record_stanza(stanza, session, "receives") + if stanza.attr.xmlns == nil then + record_stanza(stanza, session, "receives"); + end return stanza; end