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
commit2f9231573f7d1da65dcff9adfd2942bdf2990be4 (patch)
tree2b28cb88b8e4a9a4c7a5818d29897e9583f730ea /plugins/mod_scansion_record.lua
parent487155bcecdaf80307e4143f77cdfedbaf739f1b (diff)
downloadprosody-2f9231573f7d1da65dcff9adfd2942bdf2990be4.tar.gz
prosody-2f9231573f7d1da65dcff9adfd2942bdf2990be4.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)