mod_s2s: to/from attributes are required on s2s stream headers. Set them to '' when...
[prosody.git] / plugins / mod_admin_telnet.lua
index 671b6d8945504ba65188cbc560077e2106194ac4..437ded018efebb1e305541a80e48970c462ed7b5 100644 (file)
@@ -163,6 +163,10 @@ function console_listener.ondisconnect(conn, err)
        end
 end
 
+function console_listener.ondetach(conn)
+       sessions[conn] = nil;
+end
+
 -- Console commands --
 -- These are simple commands, not valid standalone in Lua
 
@@ -309,6 +313,7 @@ local function human(kb)
 end
 
 function def_env.server:memory()
+       local pposix = require("util.pposix");
        if not pposix.meminfo then
                return true, "Lua is using "..collectgarbage("count");
        end