aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_scansion_record.lua
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
commitce6880b388509b9ff9437c4f8edc49f4bb30aad9 (patch)
tree90308589ff9b3d4d18dadb1122a50406c80994a3 /plugins/mod_scansion_record.lua
parentae6a657fbe9e0299d6264e4377d920f372439a59 (diff)
downloadprosody-ce6880b388509b9ff9437c4f8edc49f4bb30aad9.tar.gz
prosody-ce6880b388509b9ff9437c4f8edc49f4bb30aad9.zip
mod_scansion_record: Only record stanzas in the default namespace
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-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