fixed chat messages

This commit is contained in:
Steffen Schröder 2014-05-16 20:07:41 +02:00
parent 277e76f641
commit 3a8ea3e519

View File

@ -73,12 +73,12 @@ class Chat {
if (!$login) {
$prefix = $this->getPrefix($prefix);
$chatMessage = '$<$z$ff0' . str_replace(' ', '', $prefix) . $prefix . $message . '$>';
$this->maniaControl->client->chatSend($chatMessage, null, true);
$this->maniaControl->client->chatSendServerMessage($chatMessage);
} else {
$chatMessage = '$<$z$ff0' . $this->getPrefix($prefix) . $message . '$>';
$login = Player::parseLogin($login);
try {
$this->maniaControl->client->chatSend($chatMessage, $login, true);
$this->maniaControl->client->chatSendServerMessage($chatMessage, $login);
} catch (UnknownPlayerException $e) {
}
}