Commit 4765d0c6 authored by nanahira's avatar nanahira

ban chat in every server

parent 24f784e0
Pipeline #6945 failed with stages
in 49 minutes and 33 seconds
...@@ -3190,7 +3190,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)-> ...@@ -3190,7 +3190,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)->
client.abuse_count=client.abuse_count+2 if client.abuse_count client.abuse_count=client.abuse_count+2 if client.abuse_count
ygopro.stoc_send_chat(client, "${chat_warn_level0}", ygopro.constants.COLORS.RED) ygopro.stoc_send_chat(client, "${chat_warn_level0}", ygopro.constants.COLORS.RED)
cancel = true cancel = true
if !(room and (room.random_type or room.arena)) if !(room and (room.random_type or room.arena)) and not settings.modules.mycard.enabled
if !cancel and settings.modules.display_watchers and client.is_post_watcher if !cancel and settings.modules.display_watchers and client.is_post_watcher
ygopro.stoc_send_chat_to_room(room, "#{client.name}: #{msg}", 9) ygopro.stoc_send_chat_to_room(room, "#{client.name}: #{msg}", 9)
return true return true
......
...@@ -4260,7 +4260,7 @@ ...@@ -4260,7 +4260,7 @@
ygopro.stoc_send_chat(client, "${chat_warn_level0}", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, "${chat_warn_level0}", ygopro.constants.COLORS.RED);
cancel = true; cancel = true;
} }
if (!(room && (room.random_type || room.arena))) { if (!(room && (room.random_type || room.arena)) && !settings.modules.mycard.enabled) {
if (!cancel && settings.modules.display_watchers && client.is_post_watcher) { if (!cancel && settings.modules.display_watchers && client.is_post_watcher) {
ygopro.stoc_send_chat_to_room(room, `${client.name}: ${msg}`, 9); ygopro.stoc_send_chat_to_room(room, `${client.name}: ${msg}`, 9);
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