Fix #51 in 0.7 branch

This commit is contained in:
slawkens
2020-02-16 00:11:51 +01:00
parent c37f593eda
commit 6bc14fb44f
2 changed files with 91 additions and 58 deletions

View File

@@ -32,6 +32,12 @@ if(!$new_nick) {
$player = new OTS_Player();
$player->find($name);
$player_from_account = false;
if(!Validator::guildNick($new_nick)) {
echo Validator::getLastError();
return;
}
if(strlen($new_nick) <= 40)
{
if($player->isLoaded())