aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_console.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-28 17:39:05 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-28 17:39:05 +0000
commitf0b237f8bd70aa6645a282534caa491d3d59cd85 (patch)
tree0c01509acd4491bc437de38f9e4dc3c698598cdd /plugins/mod_console.lua
parent9f1852c7638c1bccecd0120a570ae3f3bfd518af (diff)
downloadprosody-f0b237f8bd70aa6645a282534caa491d3d59cd85.tar.gz
prosody-f0b237f8bd70aa6645a282534caa491d3d59cd85.zip
mod_console: Update for new server API, fixes traceback when closing console sessions
Diffstat (limited to 'plugins/mod_console.lua')
-rw-r--r--plugins/mod_console.lua2
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);