Skip to content

Commit

Permalink
fix sequence search (SerbiaStrong-220#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Werzet authored Apr 1, 2024
1 parent 69c33c8 commit 8ffe40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Chat/Managers/ChatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private void SendOOC(ICommonSession player, string message)
var SponsorInfo = player.ContentData()?.SponsorInfo;
if (SponsorInfo is not null && !_adminManager.HasAdminFlag(player, AdminFlags.Admin))
{
if (BoostyOocColors.TryGetValue(SponsorInfo.Tiers.Max(), out var sponsorColor))
if (SponsorInfo.Tiers.Any() && BoostyOocColors.TryGetValue(SponsorInfo.Tiers.Max(), out var sponsorColor))
{
wrappedMessage = Loc.GetString("chat-manager-send-ooc-patron-wrap-message", ("patronColor", sponsorColor), ("playerName", player.Name), ("message", FormattedMessage.EscapeText(message)));
}
Expand Down

0 comments on commit 8ffe40e

Please sign in to comment.