Software /
code /
prosody
Comparison
plugins/mod_scansion_record.lua @ 9360:0444e321b757
mod_scansion_record: Hook correct shutdown event
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 14:27:24 +0200 |
parent | 9359:dc55d7d2798b |
child | 9361:3620f7b3517b |
comparison
equal
deleted
inserted
replaced
9359:dc55d7d2798b | 9360:0444e321b757 |
---|---|
66 | 66 |
67 filters.add_filter(session, "stanzas/in", record_stanza_in); | 67 filters.add_filter(session, "stanzas/in", record_stanza_in); |
68 filters.add_filter(session, "stanzas/out", record_stanza_out); | 68 filters.add_filter(session, "stanzas/out", record_stanza_out); |
69 end); | 69 end); |
70 | 70 |
71 module:hook_global("server-shutdown", function () | 71 module:hook_global("server-stopping", function () |
72 fh:close(); | 72 fh:close(); |
73 end); | 73 end); |