diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-28 17:39:05 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-28 17:39:05 +0000 |
commit | f0b237f8bd70aa6645a282534caa491d3d59cd85 (patch) | |
tree | 0c01509acd4491bc437de38f9e4dc3c698598cdd /plugins | |
parent | 9f1852c7638c1bccecd0120a570ae3f3bfd518af (diff) | |
download | prosody-f0b237f8bd70aa6645a282534caa491d3d59cd85.tar.gz prosody-f0b237f8bd70aa6645a282534caa491d3d59cd85.zip |
mod_console: Update for new server API, fixes traceback when closing console sessions
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_console.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index 209981ce..9962b3f6 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -37,7 +37,7 @@ function console:new_session(conn) 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); |