Commit efee5af1 authored by nanahira's avatar nanahira

update

parent 7e52d6d0
......@@ -864,7 +864,7 @@ class Room
return
if settings.modules.challonge.enabled and @started and !@kicked
challonge.matches.update({
id: settings.modules.challonge.tournament_id,
id: encodeURIComponent(settings.modules.challonge.tournament_id),
matchId: @challonge_info.id,
match: @challonge_duel_log,
callback: (err, data) ->
......@@ -1521,7 +1521,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
else
ygopro.stoc_send_chat(client, '${loading_user_info}', ygopro.constants.COLORS.BABYBLUE)
challonge.participants.index({
id: settings.modules.challonge.tournament_id,
id: encodeURIComponent(settings.modules.challonge.tournament_id),
callback: (err, data) ->
if err or !data
if err
......@@ -1538,7 +1538,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
return
client.challonge_info = found
challonge.matches.index({
id: settings.modules.challonge.tournament_id,
id: encodeURIComponent(settings.modules.challonge.tournament_id),
callback: (err, data) ->
if client.closed
return
......
......@@ -155,9 +155,9 @@ var UploadToChallonge = function() {
var player_name = player_list[k];
sendResponse("正在上传玩家 "+player_name+" 至Challonge。");
challonge.participants.create({
id: challonge_config.tournament_id,
id: encodeURIComponent(challonge_config.tournament_id),
participant: {
name: player_name
name: encodeURIComponent(player_name)
},
callback: (function(player_name, success_count) {
return function(err, 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