exception chatclass
This commit is contained in:
parent
aa642a7ef1
commit
6b056e3cfa
@ -67,10 +67,16 @@ class Chat {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$chatMessage = '$z$<' . $this->getPrefix($prefix) . $message . '$>$z';
|
$chatMessage = '$z$<' . $this->getPrefix($prefix) . $message . '$>$z';
|
||||||
|
try {
|
||||||
if ($login === null) {
|
if ($login === null) {
|
||||||
return $this->maniaControl->client->chatSendServerMessage($chatMessage);
|
$this->maniaControl->client->chatSendServerMessage($chatMessage);
|
||||||
|
} else {
|
||||||
|
$this->maniaControl->client->chatSendServerMessage($chatMessage, $login);
|
||||||
}
|
}
|
||||||
return $this->maniaControl->client->chatSendServerMessage($chatMessage, $login);
|
} catch(\Exception $e) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user