aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 14:19:22 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 14:19:22 +0200
commitf6908980d07fc3ad0df6ec63192694cc1a6af3b6 (patch)
tree90308589ff9b3d4d18dadb1122a50406c80994a3
parentccd756b54059c90f6ee10df7ca825a444492ee8a (diff)
downloadprosody-f6908980d07fc3ad0df6ec63192694cc1a6af3b6.tar.gz
prosody-f6908980d07fc3ad0df6ec63192694cc1a6af3b6.zip
mod_scansion_record: Only record stanzas in the default namespace
-rw-r--r--plugins/mod_scansion_record.lua8
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