diff --git a/file/lib/form/ChatForm.class.php b/file/lib/form/ChatForm.class.php index e5ffc54..c3f34ca 100644 --- a/file/lib/form/ChatForm.class.php +++ b/file/lib/form/ChatForm.class.php @@ -1,7 +1,6 @@ userData['color'] = \wcf\util\ChatUtil::readUserData('color'); @@ -37,7 +36,7 @@ public function readData() { } /** - * @see \wcf\form\AbstractForm::readFormParameters() + * @see \wcf\form\IForm::readFormParameters() */ public function readFormParameters() { parent::readFormParameters(); @@ -47,7 +46,7 @@ public function readFormParameters() { } /** - * @see \wcf\form\AbstractForm::validate() + * @see \wcf\form\IForm::validate() */ public function validate() { parent::validate(); @@ -57,13 +56,12 @@ public function validate() { } /** - * @see \wcf\form\AbstractForm::save() + * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $commandHandler = new \wcf\system\chat\commands\ChatCommandHandler(); - var_dump($commandHandler->isCommand($this->message)); $messageAction = new chat\message\ChatMessageAction(array(), 'create', array( 'data' => array( 'roomID' => $this->room->roomID, @@ -81,4 +79,12 @@ public function save() { $this->saved(); } + + /** + * @see \wcf\page\IPage::show() + */ + public function show() { + header("HTTP/1.0 204 No Content"); + parent::show(); + } }