示例#1
0
/**
 * @return boolean
 */
function command_reloadconfig()
{
    global $multibotObject;
    global $buffer;
    global $break;
    global $lang;
    $multibotObject->addInfo($lang['command_reload']['console_info']);
    $status = $multibotObject->setConfig("multibot");
    if ($status) {
        socketSend("success");
        //$break = true;
        return true;
    } else {
        socketSend("error");
        return false;
    }
}
示例#2
0
function command_reloadconfig()
{
    global $multibotCore;
    global $buffer;
    global $break;
    print 'reload';
    $status = $multibotCore->refreshConfig();
    if ($status) {
        socketSend("success");
        $break = true;
        return true;
    } else {
        socketSend("error");
        return false;
    }
}