SABOTAGGIO (#203)

This commit is contained in:
giuseppeM99 2017-10-05 19:10:13 +02:00 committed by Daniil Gentili
parent b7034985ec
commit b61fb558b2

View File

@ -62,7 +62,8 @@ class Lua
$this->{$namespace} = $methods[$namespace]; $this->{$namespace} = $methods[$namespace];
} }
$this->MadelineProto->lua = true; $this->MadelineProto->lua = true;
foreach ($this->MadelineProto->get_methods_namespaced() as $method => $namespace) { foreach ($this->MadelineProto->get_methods_namespaced() as $pair) {
$namespace = key($pair);
$this->MadelineProto->{$namespace}->lua = true; $this->MadelineProto->{$namespace}->lua = true;
} }
} }