* Antispam

* Add cvar
This commit is contained in:
Aviu00
2023-07-31 09:33:04 +03:00
committed by Aviu00
parent d77a3b8e0d
commit 3aacf3c841
5 changed files with 88 additions and 1 deletions

View File

@@ -6,6 +6,10 @@ using Content.Server.Chat.Managers;
using Content.Server.GameTicking;
using Content.Server.Speech.Components;
using Content.Server.Speech.EntitySystems;
using Content.Server.Ghost.Components;
using Content.Server.Players;
using Content.Server.Popups;
using Content.Server.Speech.Components;
using Content.Server.Station.Components;
using Content.Server.Station.Systems;
using Content.Server.UtkaIntegration;
@@ -245,6 +249,10 @@ public sealed partial class ChatSystem : SharedChatSystem
if (string.IsNullOrEmpty(message))
return;
if (desiredType != InGameICChatType.Emote && player is not null &&
!_chatManager.TrySendNewMessage(player, message)) // WD
return;
// This message may have a radio prefix, and should then be whispered to the resolved radio channel
if (checkRadioPrefix)
{
@@ -302,6 +310,9 @@ public sealed partial class ChatSystem : SharedChatSystem
if (!_critLoocEnabled && _mobStateSystem.IsCritical(source))
return;
if (!_chatManager.TrySendNewMessage(player, message)) // WD
return;
switch (sendType)
{
case InGameOOCChatType.Dead: