changed array of blocked words to new source
parent
2431485267
commit
7631092175
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue