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
commitfb667c18bf2d98e41e3c2ac9ea96f53a740d6829 (patch)
treeb24dc5a162327d2be72fb2afdcd9ce4935c7d02e /plugins
parent62cdff5310a9599bb52090fe092f7e8ac1ddbe98 (diff)
downloadprosody-fb667c18bf2d98e41e3c2ac9ea96f53a740d6829.tar.gz
prosody-fb667c18bf2d98e41e3c2ac9ea96f53a740d6829.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[[