Commit 78da1f9d authored by nanahira's avatar nanahira

add log for join room for league use

parent 6f38f6d5
Pipeline #4862 failed with stages
in 63 minutes and 10 seconds
...@@ -1971,6 +1971,7 @@ class Room ...@@ -1971,6 +1971,7 @@ class Room
for player in @get_playing_player() when player and player != client and player.challonge_info.id == client.challonge_info.id for player in @get_playing_player() when player and player != client and player.challonge_info.id == client.challonge_info.id
ygopro.stoc_die(client, "${challonge_player_already_in}") ygopro.stoc_die(client, "${challonge_player_already_in}")
return false return false
log.info("Player #{client.name} joined room #{@name}")
client.setTimeout(300000) #连接后超时5分钟 client.setTimeout(300000) #连接后超时5分钟
client.rid = _.indexOf(ROOM_all, this) client.rid = _.indexOf(ROOM_all, this)
@connect(client) @connect(client)
......
...@@ -2635,6 +2635,7 @@ ...@@ -2635,6 +2635,7 @@
return false; return false;
} }
} }
log.info(`Player ${client.name} joined room ${this.name}`);
client.setTimeout(300000); //连接后超时5分钟 client.setTimeout(300000); //连接后超时5分钟
client.rid = _.indexOf(ROOM_all, this); client.rid = _.indexOf(ROOM_all, this);
this.connect(client); this.connect(client);
......
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