diff options
author | Paul Aurich <paul@darkrain42.org> | 2009-07-31 17:19:05 +0100 |
---|---|---|
committer | Paul Aurich <paul@darkrain42.org> | 2009-07-31 17:19:05 +0100 |
commit | 4a38bcf39514e3a0fe8e08a1c4c2fd0136cd4d75 (patch) | |
tree | 1461a3de0510997cefae89d4f43fb4088f6c6d54 | |
parent | 041209a264222c8261ccff51df5f73bbbc23d6b8 (diff) | |
download | prosody-4a38bcf39514e3a0fe8e08a1c4c2fd0136cd4d75.tar.gz prosody-4a38bcf39514e3a0fe8e08a1c4c2fd0136cd4d75.zip |
mod_console: EOT (Ctrl-D) closes the connection.
-rw-r--r-- | plugins/mod_console.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |