From 3d9be096cbc4dcc0910115483b9404d25cc4203d Mon Sep 17 00:00:00 2001 From: rladenson Date: Thu, 3 Oct 2024 00:59:31 -0600 Subject: [PATCH] fix: respect sys name privacy in group list --- PluralKit.Bot/Commands/Groups.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/Groups.cs b/PluralKit.Bot/Commands/Groups.cs index d2f421c7..7e4bc955 100644 --- a/PluralKit.Bot/Commands/Groups.cs +++ b/PluralKit.Bot/Commands/Groups.cs @@ -460,8 +460,8 @@ public class Groups { var title = new StringBuilder("Groups of "); - if (target.Name != null) - title.Append($"{target.Name} (`{target.DisplayHid(ctx.Config)}`)"); + if (target.NameFor(ctx) != null) + title.Append($"{target.NameFor(ctx)} (`{target.DisplayHid(ctx.Config)}`)"); else title.Append($"`{target.DisplayHid(ctx.Config)}`");