Software /
code /
prosody
Diff
plugins/mod_console.lua @ 1623:099364ec1ab2
mod_console: EOT (Ctrl-D) closes the connection.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 31 Jul 2009 17:19:05 +0100 |
parent | 1618:ba2a92230b77 |
child | 1763:9e4ff3b66ed1 |
line wrap: on
line diff
--- 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");