# HG changeset patch # User Kim Alvefur # Date 1537617503 -7200 # Node ID b37f131d68c29b66f3c9962bdd4f02c6a557b40d # Parent 07fd880905a34bd036d71719e5066126c8a1ee05 mod_scansion_record: Complete stanza recording functions diff -r 07fd880905a3 -r b37f131d68c2 plugins/mod_scansion_record.lua --- a/plugins/mod_scansion_record.lua Sat Sep 22 13:55:14 2018 +0200 +++ b/plugins/mod_scansion_record.lua Sat Sep 22 13:58:23 2018 +0200 @@ -15,6 +15,7 @@ end local function record_event(session, event) + record(session.scansion_id.." "..event.."\n\n"); end local function record_stanza(stanza, session, verb) @@ -22,9 +23,13 @@ end local function record_stanza_in(stanza, session) + record_stanza(stanza, session, "sends") + return stanza; end local function record_stanza_out(stanza, session) + record_stanza(stanza, session, "receives") + return stanza; end module:hook("resource-bind", function (event)