changed array of blocked words to new source

main
fuzzykitten 2025-07-02 11:14:24 -04:00
parent 2431485267
commit 7631092175
1 changed files with 1 additions and 4 deletions

View File

@ -111,16 +111,13 @@ function blocklist_bot($text, $settings)
$words = explode(' ', $text);
require '/opt/endboard/blocked.php';
// include the array with the blocked words
$blocked_found = array();
foreach($words as $word){
$word_filtered = filter($word, 'alpha', 250);
$word_uppercase = strtoupper($word_filtered);
if ( (in_array($word_uppercase, $blocked_words) ) &&
if ( (in_array($word_uppercase, $settings['blocked_words']) ) &&
(! empty($word_filtered) ) ) {
array_push($blocked_found, $word);
}