Software /
code /
prosody
Comparison
plugins/mod_console.lua @ 3044:a6f89c72d305
Merge 0.7/MattJ with 0.7
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 17 May 2010 11:57:01 +0100 |
parent | 3043:1fadbb2e3ca0 |
parent | 3028:e095d2a98936 |
child | 3404:33c81ee280e3 |
comparison
equal
deleted
inserted
replaced
3043:1fadbb2e3ca0 | 3044:a6f89c72d305 |
---|---|
56 function console_listener.onconnect(conn) | 56 function console_listener.onconnect(conn) |
57 -- Handle new connection | 57 -- Handle new connection |
58 local session = console:new_session(conn); | 58 local session = console:new_session(conn); |
59 sessions[conn] = session; | 59 sessions[conn] = session; |
60 printbanner(session); | 60 printbanner(session); |
61 session.send(string.char(0)); | |
61 end | 62 end |
62 | 63 |
63 function console_listener.onincoming(conn, data) | 64 function console_listener.onincoming(conn, data) |
64 local session = sessions[conn]; | 65 local session = sessions[conn]; |
65 | 66 |