Software /
code /
prosody
Diff
plugins/mod_scansion_record.lua @ 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 |
parent | 9357:0ae20fb3d4c6 |
child | 9359:dc55d7d2798b |
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