Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix_chat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Nerlich
matrix_chat
Commits
cf934a73
Commit
cf934a73
authored
8 years ago
by
joenas
Browse files
Options
Downloads
Patches
Plain Diff
Added note about mod security. Also:
Fixed matrix connection
parent
6c9b424b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
init.lua
+2
-3
2 additions, 3 deletions
init.lua
with
4 additions
and
5 deletions
README.md
+
2
−
2
View file @
cf934a73
...
...
@@ -36,10 +36,10 @@ export MATRIX_API_HTTP_CLIENT=luasocket
You might need to prepend
`sudo`
to first and second commands
You also need to add Matrix to your trusted mods if you haven't disabled mod security
.
For the moment you need to disabled mod security for lua-matrix to work. This will hopefully change
.
```
secure.
trusted_mods = matrix
secure.
enable_security = false
```
[
wiki
]:
https://wiki.minetest.net/Installing_mods
...
...
This diff is collapsed.
Click to expand it.
init.lua
+
2
−
3
View file @
cf934a73
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment