mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-10 00:30:09 +00:00
Handle arbitrary Exceptions
This commit is contained in:
parent
4a901569bd
commit
f58b518963
@ -90,6 +90,11 @@ public function save() {
|
|||||||
$type = chat\message\ChatMessage::TYPE_ERROR;
|
$type = chat\message\ChatMessage::TYPE_ERROR;
|
||||||
$receiver = WCF::getUser()->userID;
|
$receiver = WCF::getUser()->userID;
|
||||||
}
|
}
|
||||||
|
catch (\Exception $e) {
|
||||||
|
$this->message = WCF::getLanguage()->get('wcf.chat.command.error.exception');
|
||||||
|
$type = chat\message\ChatMessage::TYPE_ERROR;
|
||||||
|
$receiver = WCF::getUser()->userID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$type = chat\message\ChatMessage::TYPE_NORMAL;
|
$type = chat\message\ChatMessage::TYPE_NORMAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user