diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-22 14:19:22 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-22 14:19:22 +0200 |
commit | f6908980d07fc3ad0df6ec63192694cc1a6af3b6 (patch) | |
tree | 90308589ff9b3d4d18dadb1122a50406c80994a3 | |
parent | ccd756b54059c90f6ee10df7ca825a444492ee8a (diff) | |
download | prosody-f6908980d07fc3ad0df6ec63192694cc1a6af3b6.tar.gz prosody-f6908980d07fc3ad0df6ec63192694cc1a6af3b6.zip |
mod_scansion_record: Only record stanzas in the default namespace
-rw-r--r-- | plugins/mod_scansion_record.lua | 8 |
1 files changed, 6 insertions, 2 deletions
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 |