Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7910:91db637be237 | 7923:81f3068fc30c |
---|---|
1165 print("HTTP requests to unknown hosts will be handled by "..default_host); | 1165 print("HTTP requests to unknown hosts will be handled by "..default_host); |
1166 end | 1166 end |
1167 return true; | 1167 return true; |
1168 end | 1168 end |
1169 | 1169 |
1170 module:hook("server-stopping", function(event) | |
1171 for conn, session in pairs(sessions) do | |
1172 session.print("Shutting down: "..(event.reason or "unknown reason")); | |
1173 end | |
1174 end); | |
1175 | |
1170 ------------- | 1176 ------------- |
1171 | 1177 |
1172 function printbanner(session) | 1178 function printbanner(session) |
1173 local option = module:get_option_string("console_banner", "full"); | 1179 local option = module:get_option_string("console_banner", "full"); |
1174 if option == "full" or option == "graphic" then | 1180 if option == "full" or option == "graphic" then |