From 7ee11a47efc15f8eb2a16ec10bf894399a4a9332 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 14:19:46 +0200 Subject: mod_scansion_record: Avoid recording the resource binding stanza --- plugins/mod_scansion_record.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3