mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-08-04 05:16:49 -04:00
Added fictionally inappropriate names to ZoneService such as 'Peter PIper'
This commit is contained in:
@@ -169,6 +169,8 @@ public class ZoneService extends Service {
|
||||
return ErrorMessage.NAME_DECLINED_SYNTAX;
|
||||
if (nameFilter.isProfanity(modified)) // Contains profanity
|
||||
return ErrorMessage.NAME_DECLINED_PROFANE;
|
||||
if (nameFilter.isFictionallyInappropriate(modified))
|
||||
return ErrorMessage.NAME_DECLINED_FICTIONALLY_INAPPROPRIATE;
|
||||
if (characterExistsForName(modified)) // User already exists
|
||||
return ErrorMessage.NAME_DECLINED_IN_USE;
|
||||
if (!modified.equals(name)) // If we needed to remove double spaces, trim the ends, etc
|
||||
|
||||
Reference in New Issue
Block a user