Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 7923:81f3068fc30c
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 01 Mar 2017 02:38:05 +0100 |
parent | 7723:488fddf88ffd |
parent | 7911:e528d848a185 |
child | 7982:e30b0cbed472 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sat Feb 25 17:41:39 2017 +0100 +++ b/plugins/mod_admin_telnet.lua Wed Mar 01 02:38:05 2017 +0100 @@ -1167,6 +1167,12 @@ return true; end +module:hook("server-stopping", function(event) + for conn, session in pairs(sessions) do + session.print("Shutting down: "..(event.reason or "unknown reason")); + end +end); + ------------- function printbanner(session)