Diff

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
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Tue Sep 02 17:58:12 2014 +0100
+++ b/plugins/mod_admin_telnet.lua	Tue Sep 02 22:33:11 2014 +0200
@@ -170,6 +170,10 @@
 	end
 end
 
+function console_listener.ondetach(conn)
+	sessions[conn] = nil;
+end
+
 -- Console commands --
 -- These are simple commands, not valid standalone in Lua