From f6908980d07fc3ad0df6ec63192694cc1a6af3b6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 14:19:22 +0200 Subject: mod_scansion_record: Only record stanzas in the default namespace --- plugins/mod_scansion_record.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index 6ac3a31c..31df8b19 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -24,12 +24,16 @@ local function record_stanza(stanza, session, verb) 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 -- cgit v1.2.3