From 4b5c2556d0f29b8e7100258f45d3e48e968502d8 Mon Sep 17 00:00:00 2001 From: vvaltman Date: Thu, 7 May 2015 12:05:36 +0300 Subject: [PATCH] updated tgl --- lua-tg.c | 4 +++- tgl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lua-tg.c b/lua-tg.c index e61c9f5..2edd691 100644 --- a/lua-tg.c +++ b/lua-tg.c @@ -445,7 +445,9 @@ void push_message (struct tgl_message *M) { } if (M->flags & TGLMF_MENTION) { - lua_add_num_field ("mention", 1); + lua_pushstring (luaState, "mention"); + lua_pushboolean (luaState, 1); + lua_settable (luaState, -3); } lua_pushstring (luaState, "from"); diff --git a/tgl b/tgl index a458877..16830c9 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit a4588778f998d0f27fb7e342a84b2b4ab56274dc +Subproject commit 16830c9872745a73b77767db477ecf1f5463bf8f