Commit bb5d4ce7 authored by mercury233's avatar mercury233

fix chat filter in arena

parent 02328e08
......@@ -1769,7 +1769,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
client.abuse_count=client.abuse_count+2 if client.abuse_count
ygopro.stoc_send_chat(client, "${chat_warn_level0}", ygopro.constants.COLORS.RED)
cancel = true
if !(room and room.random_type)
if !(room and (room.random_type or room.arena))
return cancel
if client.abuse_count>=5
log.warn "BANNED CHAT", client.name, client.ip, msg
......
......@@ -2225,7 +2225,7 @@
ygopro.stoc_send_chat(client, "${chat_warn_level0}", ygopro.constants.COLORS.RED);
cancel = true;
}
if (!(room && room.random_type)) {
if (!(room && (room.random_type || room.arena))) {
return cancel;
}
if (client.abuse_count >= 5) {
......
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