From 39f4118577b9ec4b2e5ee57c61ea227ba94ae698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 8 Sep 2024 10:30:30 +0800 Subject: [PATCH] fix: #347 --- src/core/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/index.ts b/src/core/index.ts index c6e9f0ea..c5be4abd 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -145,8 +145,10 @@ export class NapCatCore { if (Info.status == 20) { this.selfInfo.online = false; this.context.logger.log("账号状态变更为离线"); + return; + } else { + this.selfInfo.online = true; } - this.selfInfo.online = true; }; this.context.session.getProfileService().addKernelProfileListener( proxiedListenerOf(profileListener, this.context.logger),