From 4a38bcf39514e3a0fe8e08a1c4c2fd0136cd4d75 Mon Sep 17 00:00:00 2001 From: Paul Aurich Date: Fri, 31 Jul 2009 17:19:05 +0100 Subject: mod_console: EOT (Ctrl-D) closes the connection. --- plugins/mod_console.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index 3a18ec0e..367c46b8 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -70,6 +70,9 @@ function console_listener.listener(conn, data) if data:match("^>") then data = data:gsub("^>", ""); useglobalenv = true; + elseif data == "\004" then + commands["bye"](session, data); + return; else local command = data:lower(); command = data:match("^%w+") or data:match("%p"); -- cgit v1.2.3