From ad52ace0557073227b0cd332600146685e4bd6fc Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 5 Aug 2020 01:19:09 +0300 Subject: [PATCH] Fix error --- backend/src/plugins/Logs/util/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Logs/util/log.ts b/backend/src/plugins/Logs/util/log.ts index b0d507fd..90470fd1 100644 --- a/backend/src/plugins/Logs/util/log.ts +++ b/backend/src/plugins/Logs/util/log.ts @@ -55,7 +55,7 @@ export async function log(pluginData: PluginData, type: LogType, if (type === LogType.MESSAGE_EDIT && opts.excluded_message_regexes && data.before.data.content) { 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) { continue logChannelLoop; }