diff --git a/opt/display.php b/opt/display.php index 944b67d..ad8fef9 100644 --- a/opt/display.php +++ b/opt/display.php @@ -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); }