From b405052fd6e088f0be3b07737d7687069d458d4a Mon Sep 17 00:00:00 2001 From: CarJem Generations Date: Wed, 5 Aug 2020 14:58:17 -0400 Subject: [PATCH] [HTML] Workaround for Tupperbox nicknames (#352) --- .../Exporting/Writers/Html/MessageGroupTemplate.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordChatExporter.Domain/Exporting/Writers/Html/MessageGroupTemplate.cshtml b/DiscordChatExporter.Domain/Exporting/Writers/Html/MessageGroupTemplate.cshtml index e6f9e19..27d5c7f 100644 --- a/DiscordChatExporter.Domain/Exporting/Writers/Html/MessageGroupTemplate.cshtml +++ b/DiscordChatExporter.Domain/Exporting/Writers/Html/MessageGroupTemplate.cshtml @@ -14,7 +14,7 @@ var userMember = Model.ExportContext.TryGetMember(Model.MessageGroup.Author.Id); var userColor = Model.ExportContext.TryGetUserColor(Model.MessageGroup.Author.Id); - var userNick = userMember?.Nick ?? Model.MessageGroup.Author.Name; + var userNick = (Model.MessageGroup.Author.IsBot ? Model.MessageGroup.Author.Name : (userMember?.Nick ?? Model.MessageGroup.Author.Name)); var userColorStyle = userColor != null ? $"color: rgb({userColor?.R},{userColor?.G},{userColor?.B})"