Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
145 stars 127 forks source link

Player can create nick like a monster (if monster name have more than 2 words) #404

Closed roriscrave01 closed 3 years ago

roriscrave01 commented 4 years ago

Exemple: in config.lua this names are blocked

    $config['invalidNameTags'] = array(
         "pirate buccaneer", "pirate corsair", "pirate cutthroat", "pirate marauder",
    );

but player can create all this names. If u block "pirate", so now player cant create any pirate.

It work will all names (if have 2 words), exemple: player can create "Black Knight" and a lot of another monsters.

Znote commented 4 years ago

image

Strik3ria commented 3 years ago

Created proposed pull request. Separated "Bad words" from creature names to maintain proper logic to stop them. Created new logic to check name as a whole for multiword creature names. This will also allow users to use individual words without blockage.

Znote commented 3 years ago

Fixed in https://github.com/Znote/ZnoteAAC/pull/474