Fixed fail. Removed some debug output
This commit is contained in:
parent
efb1b482f2
commit
16b8105df8
1
loop.c
1
loop.c
@ -107,7 +107,6 @@ int net_getline (char **s, size_t *l) {
|
|||||||
_l = l;
|
_l = l;
|
||||||
rl_callback_handler_install (0, got_it);
|
rl_callback_handler_install (0, got_it);
|
||||||
net_loop (1, is_got_it);
|
net_loop (1, is_got_it);
|
||||||
printf ("'%s'\n", *s);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -360,7 +360,6 @@ char *suser;
|
|||||||
extern int dc_working_num;
|
extern int dc_working_num;
|
||||||
void do_send_code (const char *user) {
|
void do_send_code (const char *user) {
|
||||||
suser = strdup (user);
|
suser = strdup (user);
|
||||||
fprintf (stderr, "user='%s'\n", user);
|
|
||||||
want_dc_num = 0;
|
want_dc_num = 0;
|
||||||
clear_packet ();
|
clear_packet ();
|
||||||
out_int (CODE_auth_send_code);
|
out_int (CODE_auth_send_code);
|
||||||
@ -440,7 +439,6 @@ int do_auth_check_phone (const char *user) {
|
|||||||
clear_packet ();
|
clear_packet ();
|
||||||
out_int (CODE_auth_check_phone);
|
out_int (CODE_auth_check_phone);
|
||||||
out_string (user);
|
out_string (user);
|
||||||
printf ("'%s'\n", user);
|
|
||||||
check_phone_result = -1;
|
check_phone_result = -1;
|
||||||
send_query (DC_working, packet_ptr - packet_buffer, packet_buffer, &check_phone_methods, 0);
|
send_query (DC_working, packet_ptr - packet_buffer, packet_buffer, &check_phone_methods, 0);
|
||||||
net_loop (0, cr_f);
|
net_loop (0, cr_f);
|
||||||
|
@ -109,7 +109,7 @@ void fetch_user (struct user *U) {
|
|||||||
int ok = 1;
|
int ok = 1;
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < user_num + chat_num; i++) {
|
for (i = 0; i < user_num + chat_num; i++) {
|
||||||
if (Peers[i] != (void *)U && !strcmp (Peers[i]->print_name, U->print_name)) {
|
if (Peers[i] != (void *)U && Peers[i]->print_name && !strcmp (Peers[i]->print_name, U->print_name)) {
|
||||||
ok = 0;
|
ok = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user