fixed chat messages
This commit is contained in:
parent
277e76f641
commit
3a8ea3e519
@ -73,12 +73,12 @@ class Chat {
|
|||||||
if (!$login) {
|
if (!$login) {
|
||||||
$prefix = $this->getPrefix($prefix);
|
$prefix = $this->getPrefix($prefix);
|
||||||
$chatMessage = '$<$z$ff0' . str_replace(' ', '', $prefix) . $prefix . $message . '$>';
|
$chatMessage = '$<$z$ff0' . str_replace(' ', '', $prefix) . $prefix . $message . '$>';
|
||||||
$this->maniaControl->client->chatSend($chatMessage, null, true);
|
$this->maniaControl->client->chatSendServerMessage($chatMessage);
|
||||||
} else {
|
} else {
|
||||||
$chatMessage = '$<$z$ff0' . $this->getPrefix($prefix) . $message . '$>';
|
$chatMessage = '$<$z$ff0' . $this->getPrefix($prefix) . $message . '$>';
|
||||||
$login = Player::parseLogin($login);
|
$login = Player::parseLogin($login);
|
||||||
try {
|
try {
|
||||||
$this->maniaControl->client->chatSend($chatMessage, $login, true);
|
$this->maniaControl->client->chatSendServerMessage($chatMessage, $login);
|
||||||
} catch (UnknownPlayerException $e) {
|
} catch (UnknownPlayerException $e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user