From a415d9a69d7d5689b62fb83ea9613ece7e7ef209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Mon, 27 May 2024 22:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/config.js b/lib/config/config.js index 234ee340..3d60a78e 100644 --- a/lib/config/config.js +++ b/lib/config/config.js @@ -137,7 +137,7 @@ class Cfg { delete this.config[key] if (typeof Bot !== "object") return Bot.makeLog("mark", `[修改配置文件][${type}][${name}]`, "Config") - if (this[`change_${name}`]) + if (`change_${name}` in this) this[`change_${name}`]() })