Fix tolowercase
Took 31 seconds
This commit is contained in:
parent
211d45f7c3
commit
e02445e12b
2
index.js
2
index.js
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user