Update lua-tg.c
Added username field to message table passed to Lua
This commit is contained in:
parent
393b514225
commit
20ce2ae158
1
lua-tg.c
1
lua-tg.c
@ -102,6 +102,7 @@ void push_user (tgl_peer_t *P) {
|
|||||||
lua_add_string_field ("real_first_name", P->user.real_first_name);
|
lua_add_string_field ("real_first_name", P->user.real_first_name);
|
||||||
lua_add_string_field ("real_last_name", P->user.real_last_name);
|
lua_add_string_field ("real_last_name", P->user.real_last_name);
|
||||||
lua_add_string_field ("phone", P->user.phone);
|
lua_add_string_field ("phone", P->user.phone);
|
||||||
|
lua_add_string_field ("username", P->user.username);
|
||||||
if (P->user.access_hash) {
|
if (P->user.access_hash) {
|
||||||
lua_add_num_field ("access_hash", 1);
|
lua_add_num_field ("access_hash", 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user