improved sendChat

This commit is contained in:
Steffen Schröder 2014-05-02 04:02:08 +02:00
parent 6659556f6b
commit e9cb455933

View File

@ -79,7 +79,7 @@ class Chat {
$this->maniaControl->client->chatSendServerMessage($chatMessage);
} else {
$chatMessage = '$<$z$ff0' . $this->getPrefix($prefix) . $message . '$>';
if ($login instanceof Player) {
if (is_object($login) && property_exists($login, 'login')) {
$login = $login->login;
}
try{