Commit e9e0e085 authored by nanahira's avatar nanahira

fix

parent a851b6c5
...@@ -877,6 +877,7 @@ CLIENT_send_replays = (client, room) -> ...@@ -877,6 +877,7 @@ CLIENT_send_replays = (client, room) ->
i = 0 i = 0
for buffer in room.replays for buffer in room.replays
++i ++i
if buffer
ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE)
ygopro.stoc_send(client, "REPLAY", buffer) ygopro.stoc_send(client, "REPLAY", buffer)
return true return true
......
...@@ -1131,9 +1131,11 @@ ...@@ -1131,9 +1131,11 @@
for (m = 0, len2 = ref2.length; m < len2; m++) { for (m = 0, len2 = ref2.length; m < len2; m++) {
buffer = ref2[m]; buffer = ref2[m];
++i; ++i;
if (buffer) {
ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "${replay_hint_part1}" + i + "${replay_hint_part2}", ygopro.constants.COLORS.BABYBLUE);
ygopro.stoc_send(client, "REPLAY", buffer); 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