diff --git a/file/lib/form/ChatForm.class.php b/file/lib/form/ChatForm.class.php index 64a2db5..763241d 100644 --- a/file/lib/form/ChatForm.class.php +++ b/file/lib/form/ChatForm.class.php @@ -90,6 +90,11 @@ public function save() { $type = chat\message\ChatMessage::TYPE_ERROR; $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 { $type = chat\message\ChatMessage::TYPE_NORMAL;