From 7631092175c2d499212af66ac7d206bc38c9f9d8 Mon Sep 17 00:00:00 2001 From: fuzzykitten Date: Wed, 2 Jul 2025 11:14:24 -0400 Subject: [PATCH] changed array of blocked words to new source --- opt/display.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); }