1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix EOL in HourlyCleanUpCronjobExecuteChatCleanUpListener

This commit is contained in:
Tim Düsterhus 2013-08-11 17:34:30 +02:00
parent 4bc538f367
commit ea2c6f0039

View File

@ -1,28 +1,28 @@
<?php <?php
namespace chat\system\event\listener; namespace chat\system\event\listener;
use \chat\data; use \chat\data;
/** /**
* Vaporizes unneeded data. * Vaporizes unneeded data.
* *
* @author Tim Düsterhus * @author Tim Düsterhus
* @copyright 2010-2013 Tim Düsterhus * @copyright 2010-2013 Tim Düsterhus
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode> * @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
* @package be.bastelstu.chat * @package be.bastelstu.chat
* @subpackage system.event.listener * @subpackage system.event.listener
*/ */
class HourlyCleanUpCronjobExecuteChatCleanUpListener implements IEventListener { class HourlyCleanUpCronjobExecuteChatCleanUpListener implements IEventListener {
/** /**
* @see \wcf\system\event\IEventListener::execute() * @see \wcf\system\event\IEventListener::execute()
*/ */
public function execute($eventObj, $className, $eventName) { public function execute($eventObj, $className, $eventName) {
$messageAction = new data\message\MessageAction(array(), 'prune'); $messageAction = new data\message\MessageAction(array(), 'prune');
$messageAction->executeAction(); $messageAction->executeAction();
$roomAction = new data\room\RoomAction(array(), 'prune'); $roomAction = new data\room\RoomAction(array(), 'prune');
$roomAction->executeAction(); $roomAction->executeAction();
// kill dead users // kill dead users
$roomAction = new data\room\RoomAction(array(), 'removeDeadUsers'); $roomAction = new data\room\RoomAction(array(), 'removeDeadUsers');
$roomAction->executeAction(); $roomAction->executeAction();
} }
} }