Commit cadb3646 authored by nanahira's avatar nanahira

add settings.modules.challonge.no_match_mode

parent 18084910
Pipeline #5108 failed with stages
in 71 minutes and 54 seconds
......@@ -137,6 +137,7 @@
"post_detailed_score": true,
"post_score_midduel": true,
"cache_ttl": 60000,
"no_match_mode": false,
"options": {
"apiKey": "123"
},
......
......@@ -2381,6 +2381,8 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
#if found.winnerId
# ygopro.stoc_die(client, '${challonge_match_already_finished}')
# return
create_room_name = found.id
if !settings.modules.challonge.no_match_mode
create_room_name = 'M#' + found.id
if recover_match
create_room_name = recover_match[0] + ',' + create_room_name
......
......@@ -3121,7 +3121,10 @@
//if found.winnerId
// ygopro.stoc_die(client, '${challonge_match_already_finished}')
// return
create_room_name = found.id;
if (!settings.modules.challonge.no_match_mode) {
create_room_name = 'M#' + found.id;
}
if (recover_match) {
create_room_name = recover_match[0] + ',' + create_room_name;
}
......
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