From 4f5956540bf4b78535d5ba58b4edfeefe687e371 Mon Sep 17 00:00:00 2001 From: Waleed Hassan Date: Sat, 29 Jun 2024 20:03:23 +0300 Subject: [PATCH] Seasons: Fix logging (#10373) --- server/chat-plugins/seasons.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/chat-plugins/seasons.ts b/server/chat-plugins/seasons.ts index d682201f8329..06a20e427145 100644 --- a/server/chat-plugins/seasons.ts +++ b/server/chat-plugins/seasons.ts @@ -66,7 +66,9 @@ function getUserHTML(user: User, format: string) { const buf = `${user.name}`; const badgeType = getBadges(user, format).filter(x => x.format === format)[0]?.type; if (badgeType) { - return `` + buf; + let formatType = format.split(/gen\d+/)[1]; + if (!['ou', 'randombattle'].includes(formatType)) formatType = 'rotating'; + return `` + buf; } return buf; }