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'); throw new Exception('Provided script does not exist');
} }
$this->MadelineProto = $MadelineProto; $this->MadelineProto = $MadelineProto;
$settings = $this->MadelineProto->get_settings(); $this->MadelineProto->settings['updates']['handle_updates'] = true;
$settings['updates']['handle_updates'] = true;
$this->MadelineProto->parse_settings($settings);
$this->script = $script; $this->script = $script;
$this->__wakeup(); $this->__wakeup();
} }