diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-22 14:19:46 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-22 14:19:46 +0200 |
commit | 5cbd305953712374a7a0f8496531fe160cfcf518 (patch) | |
tree | 3bef396b4edd63aee7f1273ca80336c09fa3b3da /plugins/mod_scansion_record.lua | |
parent | ce6880b388509b9ff9437c4f8edc49f4bb30aad9 (diff) | |
download | prosody-5cbd305953712374a7a0f8496531fe160cfcf518.tar.gz prosody-5cbd305953712374a7a0f8496531fe160cfcf518.zip |
mod_scansion_record: Avoid recording the resource binding stanza
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-rw-r--r-- | plugins/mod_scansion_record.lua | 4 |
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 |