Fix tolowercase

Took 31 seconds
This commit is contained in:
Tobias Hopp 2021-03-15 12:02:51 +01:00
parent 211d45f7c3
commit e02445e12b

View File

@ -306,7 +306,7 @@ function checkMessage( a_ServerID, a_Message )
}
} );*/
for (const badWordsKey in badWords[a_ServerID] ) {
if( a_Message.includes( badWords[a_ServerID][badWordsKey] ) )
if( a_Message.toLowerCase().includes( badWords[a_ServerID][badWordsKey].toLowerCase() ) )
{
return true;
}