Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Controllerdestiny committed Dec 2, 2024
1 parent ef46074 commit df78fb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Lagrange.XocMat/DB/Manager/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public string Permission
[NotColumn]
public List<string> permissions { get; set; } = [];

public Group Parent
public Group? Parent
{
get => GetGroup(parent) ?? DefaultGroup.Instance;
get => GetGroup(parent);
set
{
parent = value.Name;
parent = value?.Name ?? string.Empty;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Lagrange.XocMat/Event/TerrariaMsgReceiveHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ internal async void GroupMessageForwardAdapter(BotContext bot, GroupMessageEvent
{
if (server.ForwardGroups.Contains(Convert.ToUInt32(args.Chain.GroupUin)))
{
await server.Broadcast($"[群消息][{args.Chain.GroupMemberInfo?.Uin}]: {text}", System.Drawing.Color.GreenYellow);
await server.Broadcast($"[群消息][{args.Chain.GroupMemberInfo?.MemberCard}]: {text}", System.Drawing.Color.GreenYellow);
}
}
}
Expand Down

0 comments on commit df78fb6

Please sign in to comment.