#5 Add () to compare in correct order
This commit is contained in:
parent
f166d44a3e
commit
095614a6b6
4
init.lua
4
init.lua
|
@ -76,7 +76,7 @@ local function send(user_name, message_text)
|
|||
post_data = core.write_json(data_in)
|
||||
},
|
||||
function(result)
|
||||
if not result.completed or not result.succeeded or not result.code == 200 then
|
||||
if (not result.completed) or (not result.succeeded) or (not (result.code == 200)) then
|
||||
core.log("error", "[MOD] yl_matterbridge: send/http.fetch failed. Result = " .. dump(result))
|
||||
return false
|
||||
else
|
||||
|
@ -107,7 +107,7 @@ local function receive()
|
|||
timeout = timeout
|
||||
},
|
||||
function(result)
|
||||
if not result.completed or not result.succeeded or not result.code == 200 then
|
||||
if (not result.completed) or (not result.succeeded) or (not (result.code == 200)) then
|
||||
core.log("error", "[MOD] yl_matterbridge: receive/http.fetch failed. Result (req) = " .. dump(result))
|
||||
return false
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue