Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sisi0318 committed Oct 10, 2024
1 parent b017d29 commit 99f2b2e
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ public async Task<OneBotResult> HandleOperation(BotContext context, JsonNode? pa
{
if (await context.FetchUserInfo(stranger.UserId, stranger.NoCache) is { } info)
{

uint status = info.Status;
if (status >= 268435456)
{
status -= 268435456;
}
uint mask = 268435455 - status;
mask = (uint)((int)mask >> 31);
status -= 268435456 & mask;
string? Statusmsg = StatusArray.TryGetValue(status, out string? value) ? value : "未知状态";
return new OneBotResult(new OneBotStranger
{
Expand Down

0 comments on commit 99f2b2e

Please sign in to comment.