Skip to content

Commit

Permalink
Fix critical bug that cause sponsors not able to chat in OOC
Browse files Browse the repository at this point in the history
  • Loading branch information
c4llv07e committed Nov 1, 2024
1 parent b4cd20e commit a7de9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Chat/Managers/ChatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ private void SendOOC(ICommonSession player, string message)
if (_sponsors.Sponsors.TryGetValue(player.UserId, out var sponsor))
{
string oocName = sponsor.OocName ?? "спонсор";
Color? oocColor = sponsor.OocColor;
if (oocColor != null)
string oocColor = sponsor.OocColor?.ToHex() ?? string.Empty;
if (oocColor != string.Empty)
wrappedMessage = $"OOC: [bold]\\[{oocName}\\][color={oocColor}]{player.Name}[/color]:[/bold] {formated_message}";
else
wrappedMessage = $"OOC: [bold]\\[{oocName}\\]{player.Name}:[/bold] {formated_message}";
Expand Down

0 comments on commit a7de9f3

Please sign in to comment.