Commit a55548f9 authored by nanahira's avatar nanahira

fix

parent cadb3646
Pipeline #5113 failed with stages
in 77 minutes and 24 seconds
...@@ -2381,11 +2381,13 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)-> ...@@ -2381,11 +2381,13 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
#if found.winnerId #if found.winnerId
# ygopro.stoc_die(client, '${challonge_match_already_finished}') # ygopro.stoc_die(client, '${challonge_match_already_finished}')
# return # return
create_room_name = found.id create_room_name = found.id.toString()
if !settings.modules.challonge.no_match_mode if !settings.modules.challonge.no_match_mode
create_room_name = 'M#' + found.id create_room_name = 'M#' + create_room_name
if recover_match if recover_match
create_room_name = recover_match[0] + ',' + create_room_name create_room_name = recover_match[0] + ',' + create_room_name
else if recover_match
create_room_name = recover_match[0] + '#' + create_room_name
room = await ROOM_find_or_create_by_name(create_room_name) room = await ROOM_find_or_create_by_name(create_room_name)
if room if room
room.challonge_info = found room.challonge_info = found
......
...@@ -3121,12 +3121,14 @@ ...@@ -3121,12 +3121,14 @@
//if found.winnerId //if found.winnerId
// ygopro.stoc_die(client, '${challonge_match_already_finished}') // ygopro.stoc_die(client, '${challonge_match_already_finished}')
// return // return
create_room_name = found.id; create_room_name = found.id.toString();
if (!settings.modules.challonge.no_match_mode) { if (!settings.modules.challonge.no_match_mode) {
create_room_name = 'M#' + found.id; create_room_name = 'M#' + create_room_name;
} if (recover_match) {
if (recover_match) { create_room_name = recover_match[0] + ',' + create_room_name;
create_room_name = recover_match[0] + ',' + create_room_name; }
} else if (recover_match) {
create_room_name = recover_match[0] + '#' + create_room_name;
} }
room = (await ROOM_find_or_create_by_name(create_room_name)); room = (await ROOM_find_or_create_by_name(create_room_name));
if (room) { if (room) {
......
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