Fixed disabling OOC not disabling the discord relay (#8275)

Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
ike709
2022-05-19 22:18:28 -05:00
committed by GitHub
parent 25ef9d00b8
commit 20651fc71f
2 changed files with 9 additions and 0 deletions

View File

@@ -115,6 +115,10 @@ namespace Content.Server.Chat.Managers
public void SendHookOOC(string sender, string message)
{
if (!_oocEnabled && _configurationManager.GetCVar(CCVars.DisablingOOCDisablesRelay))
{
return;
}
message = FormattedMessage.EscapeText(message);
var messageWrap = Loc.GetString("chat-manager-send-hook-ooc-wrap-message", ("senderName", sender));
ChatMessageToAll(ChatChannel.OOC, message, messageWrap);