aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 14:19:46 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 14:19:46 +0200
commit7ee11a47efc15f8eb2a16ec10bf894399a4a9332 (patch)
tree3bef396b4edd63aee7f1273ca80336c09fa3b3da /plugins
parentf6908980d07fc3ad0df6ec63192694cc1a6af3b6 (diff)
downloadprosody-7ee11a47efc15f8eb2a16ec10bf894399a4a9332.tar.gz
prosody-7ee11a47efc15f8eb2a16ec10bf894399a4a9332.zip
mod_scansion_record: Avoid recording the resource binding stanza
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_scansion_record.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua
index 31df8b19..c6c90bc3 100644
--- a/plugins/mod_scansion_record.lua
+++ b/plugins/mod_scansion_record.lua
@@ -32,7 +32,9 @@ end
local function record_stanza_out(stanza, session)
if stanza.attr.xmlns == nil then
- record_stanza(stanza, session, "receives");
+ if not (stanza.name == "iq" and stanza:get_child("bind", "urn:ietf:params:xml:ns:xmpp-bind")) then
+ record_stanza(stanza, session, "receives");
+ end
end
return stanza;
end