Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 6382:57d23c26039b
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 Sep 2014 22:33:11 +0200 |
parent | 6312:1940a014aeca |
parent | 6380:4220ffb87b22 |
child | 6383:ec8878113907 |
child | 6503:8437058c4226 |
comparison
equal
deleted
inserted
replaced
6377:50e5aed4eeea | 6382:57d23c26039b |
---|---|
166 local session = sessions[conn]; | 166 local session = sessions[conn]; |
167 if session then | 167 if session then |
168 session.disconnect(); | 168 session.disconnect(); |
169 sessions[conn] = nil; | 169 sessions[conn] = nil; |
170 end | 170 end |
171 end | |
172 | |
173 function console_listener.ondetach(conn) | |
174 sessions[conn] = nil; | |
171 end | 175 end |
172 | 176 |
173 -- Console commands -- | 177 -- Console commands -- |
174 -- These are simple commands, not valid standalone in Lua | 178 -- These are simple commands, not valid standalone in Lua |
175 | 179 |