kj415j45/kjBot

View on GitHub
module/restart/main.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

global $CQ;
requireMaster();

$cleanCache = false;
do{
    $arg = nextArg();
    switch($arg){
        case '-cleanCache':
            $cleanCache = true;
            break;
        default:
    }
}while($arg !== NULL);

$CQ->setRestart($cleanCache);

?>