Software /
code /
prosody
Diff
plugins/mod_console.lua @ 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 |
parent | 2145:daeb6ebf304c |
child | 2296:23e84604fb00 |
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);