Pre Merge pull request !151 from lcroof/N/A
This commit is contained in:
commit
3bccca9892
|
@ -251,7 +251,7 @@ class PluginsLoader {
|
||||||
/** 判断事件 */
|
/** 判断事件 */
|
||||||
if (v.event && !this.filtEvent(e, v)) continue
|
if (v.event && !this.filtEvent(e, v)) continue
|
||||||
|
|
||||||
if (!new RegExp(v.reg).test(e.msg)) continue
|
if (!new RegExp(v.reg, 'sg').test(e.msg || e.message?.[0]?.data)) continue
|
||||||
e.logFnc = `[${plugin.name}][${v.fnc}]`
|
e.logFnc = `[${plugin.name}][${v.fnc}]`
|
||||||
|
|
||||||
if (v.log !== false)
|
if (v.log !== false)
|
||||||
|
|
Loading…
Reference in New Issue