Software /
code /
prosody
Changeset
2253:a3537266a916
mod_console: Update for new server API, fixes traceback when closing console sessions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Nov 2009 17:39:05 +0000 |
parents | 2252:98a2bc275e0e |
children | 2256:482bc84c15ea |
files | plugins/mod_console.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_console.lua Sat Nov 28 15:12:43 2009 +0000 +++ b/plugins/mod_console.lua Sat Nov 28 17:39:05 2009 +0000 @@ -37,7 +37,7 @@ local session = { conn = conn; send = function (t) w(tostring(t)); end; print = function (t) w("| "..tostring(t).."\n"); end; - disconnect = function () conn.close(); end; + disconnect = function () conn:close(); end; }; session.env = setmetatable({}, default_env_mt);