diff --git a/file/lib/form/ChatForm.class.php b/file/lib/form/ChatForm.class.php index 2e71210..20b324a 100644 --- a/file/lib/form/ChatForm.class.php +++ b/file/lib/form/ChatForm.class.php @@ -218,9 +218,9 @@ public function save() { )); $this->objectAction->executeAction(); $returnValues = $this->objectAction->getReturnValues(); - + // add activity points - \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.message', $returnValues->messageID, WCF::getUser()->userID); + \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.message', $returnValues['returnValues']->messageID, WCF::getUser()->userID); $this->saved(); } diff --git a/template/chat.tpl b/template/chat.tpl index 3e81d86..f6419e6 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -4,7 +4,7 @@