Show player name on bad username kick

This commit is contained in:
Shoghi Cervantes
2014-02-03 01:10:30 +01:00
parent 5cd2362c13
commit 34378b5776
2 changed files with 10 additions and 8 deletions

View File

@@ -1285,6 +1285,8 @@ class Player{
$this->username = $data["username"];
$this->iusername = strtolower($this->username);
}else{
$this->username = $data["username"];
$this->iusername = strtolower($this->username);
$this->close("Bad username", false);
break;
}