Commit 364a333b authored by nanahira's avatar nanahira

Merge branch 'master' into koishi

parents a445d303 8fa1a874
Pipeline #17878 passed with stages
in 11 minutes and 3 seconds
......@@ -1956,14 +1956,14 @@ class Room
return
recordChatMessage: (msg, player) ->
unless settings.modules.cloud_replay.enabled and (@arena or settings.modules.tournament_mode.enabled)
return
for line in ygopro.split_chat_lines(msg, player, settings.modules.i18n.default)
chat_buf = ygopro.helper.prepareMessage("STOC_CHAT", {
player: player
msg: line
})
@addRecorderBuffer(chat_buf)
if settings.modules.cloud_replay.enabled and (@arena or settings.modules.tournament_mode.enabled)
@addRecorderBuffer(chat_buf)
@watcher_buffers.push chat_buf
return
# 网络连接
......
......@@ -2631,9 +2631,6 @@
recordChatMessage(msg, player) {
var chat_buf, j, len, line, ref;
if (!(settings.modules.cloud_replay.enabled && (this.arena || settings.modules.tournament_mode.enabled))) {
return;
}
ref = ygopro.split_chat_lines(msg, player, settings.modules.i18n.default);
for (j = 0, len = ref.length; j < len; j++) {
line = ref[j];
......@@ -2641,7 +2638,10 @@
player: player,
msg: line
});
this.addRecorderBuffer(chat_buf);
if (settings.modules.cloud_replay.enabled && (this.arena || settings.modules.tournament_mode.enabled)) {
this.addRecorderBuffer(chat_buf);
}
this.watcher_buffers.push(chat_buf);
}
}
......
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