block_words works for cw
This commit is contained in:
@@ -35,7 +35,9 @@ const DZ_NAME = '洞主';
|
||||
function check_block(info) {
|
||||
return (
|
||||
((window.config.block_tmp && info.is_tmp) ||
|
||||
window.config.block_words_v4.some((word) => info.text.includes(word))) &&
|
||||
window.config.block_words_v4.some((word) => info.text.includes(word)) ||
|
||||
(info.cw &&
|
||||
window.config.block_words_v4.some((word) => info.cw.includes(word)))) &&
|
||||
!info.can_del
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user