aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_console.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-05-07 16:13:05 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-05-07 16:13:05 +0500
commit5459f25151b4de3d3d51120dbf2a6ee8ebabb088 (patch)
tree5bb59a833724c97d36a085f5f0fd838e74915e26 /plugins/mod_console.lua
parent43658f9669a5a3566bdf12e81b3793fdecacf4eb (diff)
downloadprosody-5459f25151b4de3d3d51120dbf2a6ee8ebabb088.tar.gz
prosody-5459f25151b4de3d3d51120dbf2a6ee8ebabb088.zip
mod_console: Ensure that a null byte is printed after sending the banner.
Diffstat (limited to 'plugins/mod_console.lua')
-rw-r--r--plugins/mod_console.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua
index 4457a2f3..4180e2b6 100644
--- a/plugins/mod_console.lua
+++ b/plugins/mod_console.lua
@@ -58,6 +58,7 @@ function console_listener.onconnect(conn)
local session = console:new_session(conn);
sessions[conn] = session;
printbanner(session);
+ session.send(string.char(0));
end
function console_listener.onincoming(conn, data)