This commit is contained in:
UCPr 2024-03-26 14:20:45 +08:00
parent ccbeafc390
commit 3628a4c7f4
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ class PluginsLoader {
if (plugin.rule) for (const v of plugin.rule) { if (plugin.rule) for (const v of plugin.rule) {
/** 判断事件 */ /** 判断事件 */
if (v.event && !this.filtEvent(e, v)) continue if (v.event && !this.filtEvent(e, v)) continue
if (!new RegExp.test(e.msg)) continue if (!new RegExp(v.reg).test(e.msg)) continue
e.logFnc = `[${plugin.name}][${v.fnc}]` e.logFnc = `[${plugin.name}][${v.fnc}]`
if (v.log !== false) if (v.log !== false)