Lua fixes

This commit is contained in:
Daniil Gentili 2017-06-13 16:33:07 +02:00 committed by GitHub
parent cb89d45f86
commit cc815a7548

View File

@ -25,9 +25,7 @@ class Lua
throw new Exception('Provided script does not exist');
}
$this->MadelineProto = $MadelineProto;
$settings = $this->MadelineProto->get_settings();
$settings['updates']['handle_updates'] = true;
$this->MadelineProto->parse_settings($settings);
$this->MadelineProto->settings['updates']['handle_updates'] = true;
$this->script = $script;
$this->__wakeup();
}