mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Fix error
This commit is contained in:
parent
a7fa258f2a
commit
ad52ace055
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export async function log(pluginData: PluginData<LogsPluginType>, type: LogType,
|
||||||
|
|
||||||
if (type === LogType.MESSAGE_EDIT && opts.excluded_message_regexes && data.before.data.content) {
|
if (type === LogType.MESSAGE_EDIT && opts.excluded_message_regexes && data.before.data.content) {
|
||||||
for (const regex of opts.excluded_message_regexes) {
|
for (const regex of opts.excluded_message_regexes) {
|
||||||
const matches = await pluginData.state.regexRunner.exec(regex, data.message.data.content).catch(allowTimeout);
|
const matches = await pluginData.state.regexRunner.exec(regex, data.before.data.content).catch(allowTimeout);
|
||||||
if (matches) {
|
if (matches) {
|
||||||
continue logChannelLoop;
|
continue logChannelLoop;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue