Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
9358:bbc24fc734da | 9359:dc55d7d2798b |
---|---|
30 return stanza; | 30 return stanza; |
31 end | 31 end |
32 | 32 |
33 local function record_stanza_out(stanza, session) | 33 local function record_stanza_out(stanza, session) |
34 if stanza.attr.xmlns == nil then | 34 if stanza.attr.xmlns == nil then |
35 record_stanza(stanza, session, "receives"); | 35 if not (stanza.name == "iq" and stanza:get_child("bind", "urn:ietf:params:xml:ns:xmpp-bind")) then |
36 record_stanza(stanza, session, "receives"); | |
37 end | |
36 end | 38 end |
37 return stanza; | 39 return stanza; |
38 end | 40 end |
39 | 41 |
40 module:hook("resource-bind", function (event) | 42 module:hook("resource-bind", function (event) |