diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-22 13:58:23 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-22 13:58:23 +0200 |
commit | 10747c00ae94aeeda89c3aa9c2ba5ad0372cd746 (patch) | |
tree | 2b28cb88b8e4a9a4c7a5818d29897e9583f730ea /plugins | |
parent | 7b3bab48065c820e487a57783ef41eced362718a (diff) | |
download | prosody-10747c00ae94aeeda89c3aa9c2ba5ad0372cd746.tar.gz prosody-10747c00ae94aeeda89c3aa9c2ba5ad0372cd746.zip |
mod_scansion_record: Complete stanza recording functions
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_scansion_record.lua | 5 |
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) |