diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index 610d779..c3a661b 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -192,7 +192,10 @@ public function show() { parent::show(); // add activity points - \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.join', (microtime(true) * 1000 & 0xFFFFFFFF), WCF::getUser()->userID); + $microtime = microtime(true) * 1000; + $result = $microtime & 0xFFFFFFFF; + if ($result > 0x7FFFFFFF) $result -= 0x80000000; + \wcf\system\user\activity\point\UserActivityPointHandler::getInstance()->fireEvent('be.bastelstu.chat.activityPointEvent.join', $result, WCF::getUser()->userID); // break if not using ajax if ($this->useTemplate) exit;