improved fake player recognition

This commit is contained in:
Steffen Schröder 2014-07-20 00:00:31 +02:00
parent a3a7e06926
commit ea04eca452
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class Player {
* @return bool
*/
public function isFakePlayer() {
return ($this->pid <= 0 || !$this->path);
return ($this->pid <= 0 || substr($this->login, 0, 1) === '*');
}
/**

View File

@ -387,7 +387,7 @@ class PlayerActions {
// Announce kick
$title = $this->maniaControl->authenticationManager->getAuthLevelName($admin->authLevel);
$chatMessage = $title . ' $<' . $admin->nickname . '$> kicked $<' . $target->nickname . '$>!';
$chatMessage = $title . ' ' . $admin->getEscapedNickname() . ' kicked ' . $target->getEscapedNickname() . '!';
$this->maniaControl->chat->sendInformation($chatMessage);
$this->maniaControl->log(Formatter::stripCodes($chatMessage));
}