mod_console: Update for new server API, fixes traceback when closing console sessions

vault/0.11
Matthew Wild 16 years ago
parent 9f1852c763
commit f0b237f8bd
  1. 2
      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);

Loading…
Cancel
Save