don't report exception chat messages

This commit is contained in:
Steffen Schröder 2014-05-19 00:03:36 +02:00
parent fedf1710a2
commit 55cc74ec84

View File

@ -76,7 +76,7 @@ class Chat {
$this->maniaControl->client->chatSendServerMessage($chatMessage);
} else {
$chatMessage = '$<$z$ff0' . $this->getPrefix($prefix) . $message . '$>';
$login = Player::parseLogin($login);
$login = Player::parseLogin($login);
try {
$this->maniaControl->client->chatSendServerMessage($chatMessage, $login);
} catch (UnknownPlayerException $e) {
@ -152,7 +152,6 @@ class Chat {
*/
public function sendException(\Exception $exception, $login = null) {
$message = "Exception occurred: '{$exception->getMessage()}' ({$exception->getCode()})";
$this->maniaControl->errorHandler->triggerDebugNotice($message);
return $this->sendError($message, $login);
}