This commit is contained in:
Erik 2021-05-10 15:43:26 +03:00
parent 2eb72346d9
commit 3e9df96348
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ module.exports = class WordFilter extends FilterSetting {
};
setting[method] = resolved.result || [];
index = resolved.changed.length ? 'S_WORDFILTER_' + method.toUpperCase() + '_' + resolved.method.toUpperCase() : 'S_NO_CHANGE';
index = resolved.changed.length && resolved.method !== 'reset' ? 'S_WORDFILTER_' + method.toUpperCase() + '_' + resolved.method.toUpperCase() : 'S_NO_CHANGE';
langParams = { changed: resolved.changed.join('`, `') || '' };
} else if (['ignore', 'channelignore', 'ignorechannel'].includes(method)) {

View File

@ -101,7 +101,7 @@ module.exports = class WordWatcher extends Setting {
} else if (result) {
setting.words = result.result;
index = result.changed.length ? `S_WORDWATCHER_${result.method.toUpperCase()}` : 'S_NO_CHANGE';
index = result.changed.length && result.method !== 'reset' ? `S_WORDWATCHER_${result.method.toUpperCase()}` : 'S_NO_CHANGE';
langParams.changes = result.changed.join('**, **');
} else {