Pre Merge pull request !151 from lcroof/N/A

This commit is contained in:
lcroof 2024-03-16 06:17:39 +00:00 committed by Gitee
commit 3bccca9892
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class PluginsLoader {
/** 判断事件 */
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}]`
if (v.log !== false)