From 302475b1b547affee454ed1e337f10c73e010403 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 23 Jul 2022 13:48:46 -0500 Subject: [PATCH] make sure color tokens are mapped for kick messages --- Application/Misc/ClientNoticeMessageFormatter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Misc/ClientNoticeMessageFormatter.cs b/Application/Misc/ClientNoticeMessageFormatter.cs index 3ab5c120..fc58eb16 100644 --- a/Application/Misc/ClientNoticeMessageFormatter.cs +++ b/Application/Misc/ClientNoticeMessageFormatter.cs @@ -33,7 +33,7 @@ namespace IW4MAdmin.Application.Misc builder.Append(header); builder.Append(config.NoticeLineSeparator); // build the reason - var reason = _transLookup["GAME_MESSAGE_PENALTY_REASON"].FormatExt(penalty.Offense); + var reason = _transLookup["GAME_MESSAGE_PENALTY_REASON"].FormatExt(penalty.Offense.FormatMessageForEngine(config)); if (isNewLineSeparator) { @@ -117,4 +117,4 @@ namespace IW4MAdmin.Application.Misc return segments; } } -} \ No newline at end of file +}