@@ -159,9 +159,10 @@ public sealed partial class ChatSystem : SharedChatSystem
|
||||
IConsoleShell? shell = null,
|
||||
ICommonSession? player = null, string? nameOverride = null,
|
||||
bool checkRadioPrefix = true,
|
||||
bool ignoreActionBlocker = false)
|
||||
bool ignoreActionBlocker = false,
|
||||
bool force = false)
|
||||
{
|
||||
TrySendInGameICMessage(source, message, desiredType, hideChat ? ChatTransmitRange.HideChat : ChatTransmitRange.Normal, hideLog, shell, player, nameOverride, checkRadioPrefix, ignoreActionBlocker);
|
||||
TrySendInGameICMessage(source, message, desiredType, hideChat ? ChatTransmitRange.HideChat : ChatTransmitRange.Normal, hideLog, shell, player, nameOverride, checkRadioPrefix, ignoreActionBlocker, force);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -242,7 +243,7 @@ public sealed partial class ChatSystem : SharedChatSystem
|
||||
// Was there an emote in the message? If so, send it.
|
||||
if (emoteStr != message && emoteStr != null)
|
||||
{
|
||||
SendEntityEmote(source, emoteStr, range, nameOverride, ignoreActionBlocker, force: force);
|
||||
SendEntityEmote(source, emoteStr, range, nameOverride, ignoreActionBlocker);
|
||||
}
|
||||
|
||||
// This can happen if the entire string is sanitized out.
|
||||
@@ -273,7 +274,7 @@ public sealed partial class ChatSystem : SharedChatSystem
|
||||
SendEntityWhisper(source, message, range, null, nameOverride, hideLog, ignoreActionBlocker);
|
||||
break;
|
||||
case InGameICChatType.Emote:
|
||||
SendEntityEmote(source, message, range, nameOverride, hideLog: hideLog, ignoreActionBlocker: ignoreActionBlocker, force: force);
|
||||
SendEntityEmote(source, message, range, nameOverride, hideLog: hideLog, ignoreActionBlocker: ignoreActionBlocker);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -596,8 +597,7 @@ public sealed partial class ChatSystem : SharedChatSystem
|
||||
bool hideLog = false,
|
||||
bool checkEmote = true,
|
||||
bool ignoreActionBlocker = false,
|
||||
NetUserId? author = null,
|
||||
bool force = false
|
||||
NetUserId? author = null
|
||||
)
|
||||
{
|
||||
if (!_actionBlocker.CanEmote(source) && !ignoreActionBlocker)
|
||||
|
||||
Reference in New Issue
Block a user