diff --git a/file/lib/form/ChatForm.class.php b/file/lib/form/ChatForm.class.php
index 97acefd..dc816c0 100644
--- a/file/lib/form/ChatForm.class.php
+++ b/file/lib/form/ChatForm.class.php
@@ -218,6 +218,9 @@ public function save() {
));
$this->objectAction->executeAction();
+ // add activity points
+ \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.wcf.chat.activityPointEvent.message', TIME_NOW, WCF::getUser()->userID);
+
$this->saved();
}
diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php
index 571f646..f9b57ef 100644
--- a/file/lib/page/ChatPage.class.php
+++ b/file/lib/page/ChatPage.class.php
@@ -243,6 +243,9 @@ public function show() {
parent::show();
+ // add activity points
+ \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.wcf.chat.activityPointEvent.join', TIME_NOW, WCF::getUser()->userID);
+
// break if not using ajax
if ($this->useTemplate) exit;
@header('Content-type: application/json');
diff --git a/objectType.xml b/objectType.xml
index 38677d4..275c3d1 100644
--- a/objectType.xml
+++ b/objectType.xml
@@ -5,5 +5,17 @@
be.bastelstu.wcf.chat.room
com.woltlab.wcf.acl
+
+ be.bastelstu.wcf.chat.activityPointEvent.join
+ com.woltlab.wcf.user.activityPointEvent
+ 0
+ wcf\system\user\activity\point\DefaultUserActivityPointObjectProcessor
+
+
+ be.bastelstu.wcf.chat.activityPointEvent.message
+ com.woltlab.wcf.user.activityPointEvent
+ 0
+ wcf\system\user\activity\point\DefaultUserActivityPointObjectProcessor
+
\ No newline at end of file