Commit e6deffad authored by nanahira's avatar nanahira

allow send replay to player in tournament mode

parent de0fb898
......@@ -94,6 +94,7 @@
"replay_safe": true,
"replay_path": "./replays/",
"replay_archive_tool": "7z",
"block_replay_to_player": true,
"show_ip": false,
"show_info": true,
"log_save_path": "./config/",
......
......@@ -2011,7 +2011,7 @@ ygopro.stoc_follow 'REPLAY', true, (buffer, info, client, server)->
)
if settings.modules.cloud_replay.enabled
ygopro.stoc_send_chat(client, "${cloud_replay_delay_part1}R##{room.cloud_replay_id}${cloud_replay_delay_part2}", ygopro.constants.COLORS.BABYBLUE)
return true
return settings.modules.block_replay_to_player
else
return false
......
......@@ -2562,7 +2562,7 @@
if (settings.modules.cloud_replay.enabled) {
ygopro.stoc_send_chat(client, "${cloud_replay_delay_part1}R#" + room.cloud_replay_id + "${cloud_replay_delay_part2}", ygopro.constants.COLORS.BABYBLUE);
}
return true;
return settings.modules.block_replay_to_player;
} else {
return false;
}
......
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