From c3efed3c53055076d267d3780f6a7127529b3e49 Mon Sep 17 00:00:00 2001 From: sameu Date: Sun, 30 Jul 2023 15:15:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BD=AC=E5=8F=91?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=BC=AA=E8=A3=85=20(#216)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/common.js b/lib/common/common.js index 8b79e8d..6de7879 100644 --- a/lib/common/common.js +++ b/lib/common/common.js @@ -64,13 +64,13 @@ function mkdirs(dirname) { * @param e 消息事件 * @param msg 消息数组 * @param dec 转发描述 - * @param msgsscr 转发信息是否为Bot + * @param msgsscr 转发信息是否伪装 */ async function makeForwardMsg(e, msg = [], dec = '', msgsscr = false) { if (!Array.isArray(msg)) msg = [msg] - let name = msgsscr ? this.e.sender.card || this.e.user_id : Bot.nickname - let id = msgsscr ? this.e.user_id : Bot.uin + let name = msgsscr ? e.sender.card || e.user_id : Bot.nickname + let id = msgsscr ? e.user_id : Bot.uin if (e.isGroup) { let info = await e.bot.getGroupMemberInfo(e.group_id, id)