aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_scansion_record.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 13:58:23 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 13:58:23 +0200
commit10747c00ae94aeeda89c3aa9c2ba5ad0372cd746 (patch)
tree2b28cb88b8e4a9a4c7a5818d29897e9583f730ea /plugins/mod_scansion_record.lua
parent7b3bab48065c820e487a57783ef41eced362718a (diff)
downloadprosody-10747c00ae94aeeda89c3aa9c2ba5ad0372cd746.tar.gz
prosody-10747c00ae94aeeda89c3aa9c2ba5ad0372cd746.zip
mod_scansion_record: Complete stanza recording functions
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-rw-r--r--plugins/mod_scansion_record.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua
index 6e3cdcc2..645ea89c 100644
--- a/plugins/mod_scansion_record.lua
+++ b/plugins/mod_scansion_record.lua
@@ -15,6 +15,7 @@ local function record(string)
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 @@ local function record_stanza(stanza, session, verb)
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)