clean nickname of players

This commit is contained in:
kremsy
2013-12-24 13:27:59 +01:00
parent dccc237c4f
commit 4bdf9d558a
3 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<?php
namespace ManiaControl\Players;
use ManiaControl\Formatter;
/**
* Class representing players
@ -42,7 +43,7 @@ class Player {
}
$this->pid = $rpcInfos['PlayerId'];
$this->login = $rpcInfos['Login'];
$this->nickname = $rpcInfos['NickName'];
$this->nickname = Formatter::stripCodesWithoutColors($rpcInfos['NickName']);
$this->path = $rpcInfos['Path'];
$this->language = $rpcInfos['Language'];
$this->avatar = $rpcInfos['Avatar']['FileName'];