Software /
code /
prosody
Diff
plugins/mod_scansion_record.lua @ 9359:dc55d7d2798b
mod_scansion_record: Avoid recording the resource binding stanza
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 14:19:46 +0200 |
parent | 9358:bbc24fc734da |
child | 9360:0444e321b757 |
line wrap: on
line diff
--- 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