From 3a8ea3e5196f9f0c859b6b0c4ed35a5bb5979645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 16 May 2014 20:07:41 +0200 Subject: [PATCH] fixed chat messages --- application/core/Chat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/Chat.php b/application/core/Chat.php index f4270fb4..f09bff0b 100644 --- a/application/core/Chat.php +++ b/application/core/Chat.php @@ -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) { } }