Skip to content

Commit

Permalink
feat: 过滤空消息
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Dec 20, 2024
1 parent 15a640d commit cc9adf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/onebot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ export class NapCatOneBot11Adapter {
}

private async handleMsg(message: RawMessage, network: Array<AdapterConfigWrap>) {
// 过滤无效消息
if (message.msgType === NTMsgType.KMSGTYPENULL) {
return;
}
try {
const ob11Msg = await this.apis.MsgApi.parseMessageV2(message, this.configLoader.configData.parseMultMsg);
if (ob11Msg) {
Expand Down

0 comments on commit cc9adf9

Please sign in to comment.