# HG changeset patch # User Kim Alvefur # Date 1537618762 -7200 # Node ID bbc24fc734da8e65d33259c206f8e3846bf03f77 # Parent 0ae20fb3d4c611658b0fe6b49163981cd32c5a87 mod_scansion_record: Only record stanzas in the default namespace diff -r 0ae20fb3d4c6 -r bbc24fc734da plugins/mod_scansion_record.lua --- 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