Commit dfce6aa3 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 4d20ebd8 e9e0e085
...@@ -1007,8 +1007,9 @@ CLIENT_send_replays = (client, room) -> ...@@ -1007,8 +1007,9 @@ CLIENT_send_replays = (client, room) ->
i = 0 i = 0
for buffer in room.replays for buffer in room.replays
++i ++i
ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE) if buffer
ygopro.stoc_send(client, "REPLAY", buffer) ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE)
ygopro.stoc_send(client, "REPLAY", buffer)
return true return true
SOCKET_flush_data = (sk, datas) -> SOCKET_flush_data = (sk, datas) ->
......
...@@ -1316,8 +1316,10 @@ ...@@ -1316,8 +1316,10 @@
for (m = 0, len3 = ref3.length; m < len3; m++) { for (m = 0, len3 = ref3.length; m < len3; m++) {
buffer = ref3[m]; buffer = ref3[m];
++i; ++i;
ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE); if (buffer) {
ygopro.stoc_send(client, "REPLAY", buffer); ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE);
ygopro.stoc_send(client, "REPLAY", buffer);
}
} }
return true; return true;
}; };
......
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