More work on vendors

This commit is contained in:
Light2
2014-05-12 17:35:19 +02:00
parent 61bfc193ec
commit 119e58318c
7 changed files with 213 additions and 4 deletions
+12
View File
@@ -89,6 +89,18 @@ public class CharacterService implements INetworkDispatch {
}
}
public boolean checkName(String name, Client client) {
// TODO: check for dev names, profane names, iconic names etc
try {
if(checkForDuplicateName(name, client.getAccountId()) || !name.matches(allowedCharsRegex))
return false;
} catch (SQLException e) {
e.printStackTrace();
}
return true;
}
@Override
public void insertOpcodes(Map<Integer,INetworkRemoteEvent> swgOpcodes, Map<Integer,INetworkRemoteEvent> objControllerOpcodes) {