1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 22:28:15 -05:00

make sure color tokens are mapped for kick messages

This commit is contained in:
RaidMax 2022-07-23 13:48:46 -05:00
parent 9761713ef5
commit 302475b1b5

View File

@ -33,7 +33,7 @@ namespace IW4MAdmin.Application.Misc
builder.Append(header); builder.Append(header);
builder.Append(config.NoticeLineSeparator); builder.Append(config.NoticeLineSeparator);
// build the reason // 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) if (isNewLineSeparator)
{ {