diff --git a/src/onebot/helper/data.ts b/src/onebot/helper/data.ts index b23713d4..73461eb6 100644 --- a/src/onebot/helper/data.ts +++ b/src/onebot/helper/data.ts @@ -51,8 +51,8 @@ export class OB11Constructor { msg: RawMessage, messagePostFormat: string = obcore.configLoader.configData.messagePostFormat ): Promise { - if (msg.senderUin == "0") return; - if (msg.peerUin == "0") return; + if (msg.senderUin == "0" || msg.senderUin == "") return; + if (msg.peerUin == "0" || msg.peerUin) return; //跳过空消息 const NTQQGroupApi = core.apis.GroupApi; const NTQQUserApi = core.apis.UserApi;