mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
chore: 排除空消息
This commit is contained in:
@@ -51,8 +51,8 @@ export class OB11Constructor {
|
|||||||
msg: RawMessage,
|
msg: RawMessage,
|
||||||
messagePostFormat: string = obcore.configLoader.configData.messagePostFormat
|
messagePostFormat: string = obcore.configLoader.configData.messagePostFormat
|
||||||
): Promise<OB11Message | undefined> {
|
): Promise<OB11Message | undefined> {
|
||||||
if (msg.senderUin == "0") return;
|
if (msg.senderUin == "0" || msg.senderUin == "") return;
|
||||||
if (msg.peerUin == "0") return;
|
if (msg.peerUin == "0" || msg.peerUin) return;
|
||||||
//跳过空消息
|
//跳过空消息
|
||||||
const NTQQGroupApi = core.apis.GroupApi;
|
const NTQQGroupApi = core.apis.GroupApi;
|
||||||
const NTQQUserApi = core.apis.UserApi;
|
const NTQQUserApi = core.apis.UserApi;
|
||||||
|
Reference in New Issue
Block a user