Added note about mod security. Also:

Fixed matrix connection
This commit is contained in:
joenas
2017-06-21 22:05:32 +02:00
parent 6c9b424bfd
commit cf934a7306
2 changed files with 4 additions and 5 deletions

View File

@@ -8,8 +8,7 @@ local ie, req_ie = _G, minetest.request_insecure_environment
if req_ie then ie = req_ie() end
if not ie then
error("The Matrix mod requires access to insecure functions in order "..
"to work. Please add the matrix mod to your secure.trusted_mods "..
"setting or disable the matrix mod.")
"to work. Please disable mod security. This will hopefully change.")
end
ie.package.path =
@@ -30,7 +29,7 @@ local function eprintf(fmt, ...)
minetest.log("info", fmt:format(...))
end
local client = require("matrix").client("https://"..matrix.config.server..":"..matrix.config.port)
local client = require("matrix").client(matrix.config.server..":"..matrix.config.port)
local start_ts = os.time() * 1000