From e0f5f163537591c5e4cd62580ef9b65343c5d20c Mon Sep 17 00:00:00 2001 From: Yago Date: Sun, 29 Nov 2015 14:37:05 +0100 Subject: [PATCH] Fixes chat_add_user and chat_del_user. 'p + 2' in stead of 'p + 1' --- lua-tg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua-tg.c b/lua-tg.c index d7db428..d6f64b1 100644 --- a/lua-tg.c +++ b/lua-tg.c @@ -1258,11 +1258,11 @@ void lua_do_all (void) { p += 3; break; case lq_chat_add_user: - tgl_do_add_user_to_chat (TLS, lua_ptr[p + 1].peer_id, lua_ptr[p + 1].peer_id, 10, lua_empty_cb, lua_ptr[p].ptr); + tgl_do_add_user_to_chat (TLS, lua_ptr[p + 1].peer_id, lua_ptr[p + 2].peer_id, 10, lua_empty_cb, lua_ptr[p].ptr); p += 3; break; case lq_chat_del_user: - tgl_do_del_user_from_chat (TLS, lua_ptr[p + 1].peer_id, lua_ptr[p + 1].peer_id, lua_empty_cb, lua_ptr[p].ptr); + tgl_do_del_user_from_chat (TLS, lua_ptr[p + 1].peer_id, lua_ptr[p + 2].peer_id, lua_empty_cb, lua_ptr[p].ptr); p += 3; break; case lq_add_contact: