Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed May 27, 2024
1 parent f97809c commit a415d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`]()
})

Expand Down

0 comments on commit a415d9a

Please sign in to comment.