updated tgl

This commit is contained in:
V V 2015-10-10 19:54:46 +03:00
parent dd748e1be5
commit 865c0a933c
3 changed files with 4 additions and 3 deletions

2
loop.c
View File

@ -813,7 +813,7 @@ int loop (void) {
if (disable_link_preview) {
tgl_disable_link_preview (TLS);
}
tgl_init (TLS);
assert (tgl_init (TLS) >= 0);
/*if (binlog_enabled) {
double t = tglt_get_double_time ();

View File

@ -227,9 +227,10 @@ void push_peer (tgl_peer_id_t id, tgl_peer_t *P) {
lua_newtable (luaState);
lua_add_string_field ("id", print_permanent_peer_id (P->id));
lua_pushstring (luaState, "type");
lua_pushstring (luaState, "peer_type");
push_tgl_peer_type (tgl_get_peer_type (P->id));
lua_settable (luaState, -3);
lua_add_num_field ("peer_id", tgl_get_peer_id (P->id));
if (!P || !(P->flags & TGLPF_CREATED)) {
lua_pushstring (luaState, "print_name");

2
tgl

@ -1 +1 @@
Subproject commit 511860ecf69f51e0a8f2e0617490f81e624e0fb2
Subproject commit 6467a94ee3d9f69b6f23d66221f7bd0d58df7ac2