aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 19:30:31 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 19:30:31 +0200
commit13d98c70809be43df92fa9d8b19ed7a8683763dc (patch)
treeb24dc5a162327d2be72fb2afdcd9ce4935c7d02e /plugins
parentcecaab43e1dbae5641743d8c8e3610e7b39ab5a8 (diff)
downloadprosody-13d98c70809be43df92fa9d8b19ed7a8683763dc.tar.gz
prosody-13d98c70809be43df92fa9d8b19ed7a8683763dc.zip
mod_scansion_record: Record disconnection
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_scansion_record.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua
index 98c30eb6..3fbc8b6b 100644
--- a/plugins/mod_scansion_record.lua
+++ b/plugins/mod_scansion_record.lua
@@ -87,6 +87,13 @@ module:hook("resource-bind", function (event)
filters.add_filter(session, "stanzas/out", record_stanza_out);
end);
+module:hook("resource-unbind", function (event)
+ local session = event.session;
+ if session.scansion_id then
+ record_event(session, "disconnects");
+ end
+end)
+
record_header("# mod_scansion_record on host '"..module.host.."' recording started "..dt.datetime().."\n\n");
record[[