forked from Galactic/galactic-bot
haha silly bug
This commit is contained in:
parent
3e9df96348
commit
c70c31bba6
@ -92,7 +92,7 @@ module.exports = class WordFilter extends FilterSetting {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setting[method] = resolved.result || [];
|
setting[method] = resolved.result || [];
|
||||||
index = resolved.changed.length && resolved.method !== 'reset' ? '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('`, `') || '' };
|
langParams = { changed: resolved.changed.join('`, `') || '' };
|
||||||
|
|
||||||
} else if (['ignore', 'channelignore', 'ignorechannel'].includes(method)) {
|
} else if (['ignore', 'channelignore', 'ignorechannel'].includes(method)) {
|
||||||
|
@ -101,7 +101,7 @@ module.exports = class WordWatcher extends Setting {
|
|||||||
} else if (result) {
|
} else if (result) {
|
||||||
|
|
||||||
setting.words = result.result;
|
setting.words = result.result;
|
||||||
index = result.changed.length && result.method !== 'reset' ? `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('**, **');
|
langParams.changes = result.changed.join('**, **');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user