Unify core VS minetest

This commit is contained in:
AliasAlreadyTaken 2022-02-25 21:30:38 +01:00
parent fe0be3e170
commit dda80031da
1 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,7 @@ function send(user_name, message_text)
return true
end
local function receive(dtime)
local function receive()
local url = "http://" .. address .. ":" .. port .. "/api/messages"
local timeout = 0
@ -69,7 +69,6 @@ local function receive(dtime)
function(result)
if result.succeeded then
local data = minetest.parse_json(result.data)
core.log("action", "[MOD] yl_matterbridge : Posted " .. dump(data))
for _,v in ipairs(data) do
if v.username and v.text then
yl_matterbridge.publish_to_chat(v.username, v.text)