Commit bb5f09a8 authored by nanahira's avatar nanahira

always log challonge error

parent 622a03f7
...@@ -2334,11 +2334,12 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)-> ...@@ -2334,11 +2334,12 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
}) })
return return
}, (err, datas) -> }, (err, datas) ->
if client.closed
return
if err or !datas.participant_data or !datas.match_data if err or !datas.participant_data or !datas.match_data
log.warn("Failed loading Challonge user info", err) log.warn("Failed loading Challonge user info", err)
ygopro.stoc_die(client, '${challonge_match_load_failed}') if !client.closed
ygopro.stoc_die(client, '${challonge_match_load_failed}')
return
if client.closed
return return
found = false found = false
for k,user of datas.participant_data for k,user of datas.participant_data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment