3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix error

This commit is contained in:
Dragory 2020-08-05 01:19:09 +03:00
parent a7fa258f2a
commit ad52ace055
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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) {
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;
}