From a546ebc88886d20f1f34da4a465c2763c7074738 Mon Sep 17 00:00:00 2001 From: spiral Date: Sun, 3 Oct 2021 04:34:26 -0400 Subject: [PATCH] fix: check correct length for fronthistory embed --- PluralKit.Bot/Commands/SystemFront.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/SystemFront.cs b/PluralKit.Bot/Commands/SystemFront.cs index 201a258a..b813ced3 100644 --- a/PluralKit.Bot/Commands/SystemFront.cs +++ b/PluralKit.Bot/Commands/SystemFront.cs @@ -100,7 +100,7 @@ namespace PluralKit.Bot $"**{membersStr}** ({sw.Timestamp.FormatZoned(system.Zone)}, {switchSince.FormatDuration()} ago)\n"; } - if (sb.Length + stringToAdd.Length >= 1024) + if (sb.Length + stringToAdd.Length >= 4096) break; sb.Append(stringToAdd); }