Diff

plugins/mod_scansion_record.lua @ 9351:b37f131d68c2

mod_scansion_record: Complete stanza recording functions
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 13:58:23 +0200
parent 9350:07fd880905a3
child 9352:0fdb70ad9fcc
line wrap: on
line diff
--- 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)