# HG changeset patch # User Kim Alvefur # Date 1537618786 -7200 # Node ID dc55d7d2798ba5ab6eb2723b86a518dc626e6c65 # Parent bbc24fc734da8e65d33259c206f8e3846bf03f77 mod_scansion_record: Avoid recording the resource binding stanza diff -r bbc24fc734da -r dc55d7d2798b plugins/mod_scansion_record.lua --- a/plugins/mod_scansion_record.lua Sat Sep 22 14:19:22 2018 +0200 +++ b/plugins/mod_scansion_record.lua Sat Sep 22 14:19:46 2018 +0200 @@ -32,7 +32,9 @@ 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