1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix activity points for join

This commit is contained in:
Tim Düsterhus 2013-03-19 17:55:33 +01:00
parent b3089dbfb6
commit 5bca9885d5

View File

@ -192,7 +192,10 @@ public function show() {
parent::show(); parent::show();
// add activity points // 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 // break if not using ajax
if ($this->useTemplate) exit; if ($this->useTemplate) exit;