Fri, 31 Jul 2009 17:19:05 +0100
mod_console: EOT (Ctrl-D) closes the connection.
plugins/mod_console.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_console.lua Wed Jul 29 18:11:37 2009 +0100 +++ b/plugins/mod_console.lua Fri Jul 31 17:19:05 2009 +0100 @@ -70,6 +70,9 @@ 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");