Merge pull request #652 from DarkflameUniverse/blacklist-and-chat-changes

Blacklist and chat changes
This commit is contained in:
Jett
2022-07-19 10:40:44 +01:00
committed by GitHub
10 changed files with 147 additions and 63 deletions

View File

@@ -1193,7 +1193,7 @@ void PetComponent::SetPetNameForModeration(const std::string& petName) {
int approved = 1; //default, in mod
//Make sure that the name isn't already auto-approved:
if (Game::chatFilter->IsSentenceOkay(petName, 0)) {
if (Game::chatFilter->IsSentenceOkay(petName, 0).empty()) {
approved = 2; //approved
}