From 3a898a42c10ed17ffeecb587ca09cdaa4b39e6b5 Mon Sep 17 00:00:00 2001 From: vysheng Date: Wed, 14 Oct 2015 12:43:33 +0300 Subject: [PATCH 1/3] Update ax_python.m4 --- ax_python.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ax_python.m4 b/ax_python.m4 index 0f5829d..bccf0cf 100644 --- a/ax_python.m4 +++ b/ax_python.m4 @@ -56,7 +56,7 @@ AC_DEFUN([AX_PYTHON], [AC_MSG_CHECKING(for python build information) AC_MSG_RESULT([]) -for python in python3.4 python3.3 python3.2 python3.1 python3 python2.7 python2.6 python2 python; do +for python in python3.5 python3.4 python3.3 python3.2 python3.1 python3 python2.7 python2.6 python2 python; do AC_CHECK_PROGS(PYTHON_BIN, [$python]) ax_python_bin=$PYTHON_BIN if test x$ax_python_bin != x; then From fec69314feb8c6fb361c167eb2b7f64692f4d46a Mon Sep 17 00:00:00 2001 From: Fabian Franke Date: Mon, 23 Nov 2015 22:39:29 +0100 Subject: [PATCH 2/3] added phone number change support --- interface.c | 7 +++++++ tgl | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/interface.c b/interface.c index 47b9bcf..e84fccc 100644 --- a/interface.c +++ b/interface.c @@ -932,6 +932,12 @@ void do_set_username (struct command *command, int arg_num, struct arg args[], s tgl_do_set_username (TLS, ARG2STR (0), print_user_gw, ev); } +void do_set_phone_number (struct command *command, int arg_num, struct arg args[], struct in_ev *ev) { + assert (arg_num == 1); + if (ev) { ev->refcnt ++; } + tgl_do_set_phone_number (TLS, ARG2STR (0), print_success_gw, ev); +} + void do_status_online (struct command *command, int arg_num, struct arg args[], struct in_ev *ev) { assert (!arg_num); if (ev) { ev->refcnt ++; } @@ -1463,6 +1469,7 @@ struct command commands[MAX_COMMANDS_SIZE] = { {"set_profile_photo", {ca_file_name_end, ca_none}, do_set_profile_photo, "set_profile_photo \tSets profile photo. Photo will be cropped to square", NULL}, {"set_ttl", {ca_secret_chat, ca_number, ca_none}, do_set_ttl, "set_ttl \tSets secret chat ttl. Client itself ignores ttl", NULL}, {"set_username", {ca_string, ca_none}, do_set_username, "set_username \tSets username.", NULL}, + {"set_phone_number", {ca_string, ca_none}, do_set_phone_number, "set_phone_number \tChanges the phone number of this account", NULL}, {"show_license", {ca_none}, do_show_license, "show_license\tPrints contents of GPL license", NULL}, {"start_bot", {ca_user, ca_chat, ca_string, ca_none}, do_start_bot, "start_bot \tAdds bot to chat", NULL}, {"stats", {ca_none}, do_stats, "stats\tFor debug purpose", NULL}, diff --git a/tgl b/tgl index 418f81b..f61c299 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit 418f81be448fdebb04c3809795f8c160ee13280c +Subproject commit f61c29930221ca8456e555fb980cc9f5118921bc From 0881c5d0e7429b14c8f9ee28316c19f6a0402a2e Mon Sep 17 00:00:00 2001 From: Fabian Franke Date: Mon, 23 Nov 2015 23:15:07 +0100 Subject: [PATCH 3/3] fixed wrong function header in tgl --- tgl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgl b/tgl index f61c299..e70203f 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit f61c29930221ca8456e555fb980cc9f5118921bc +Subproject commit e70203fc316022ba0a37f72c6030f7f227171ca2