From 008d546f1a2e501427a75e5abccb7b6d3ad86b1d Mon Sep 17 00:00:00 2001 From: EnderFx <1501721149@qq.com> Date: Mon, 20 Mar 2023 10:34:05 +0800 Subject: [PATCH] Update cqcode.go (#2001) fix #1998 --- coolq/cqcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolq/cqcode.go b/coolq/cqcode.go index 7cb8a7eec..c7751b524 100644 --- a/coolq/cqcode.go +++ b/coolq/cqcode.go @@ -642,7 +642,7 @@ func (bot *CQBot) ConvertElement(spec *onebot.Spec, elem msg.Element, sourceType return bot.reply(spec, elem, sourceType) case "forward": id := elem.Get("id") - if id != "" { + if id == "" { return nil, errors.New("forward 消息中必须包含 id") } fwdMsg := bot.Client.DownloadForwardMessage(id)