Commit 16b8105d authored by vysheng's avatar vysheng

Fixed fail. Removed some debug output

parent efb1b482
......@@ -107,7 +107,6 @@ int net_getline (char **s, size_t *l) {
_l = l;
rl_callback_handler_install (0, got_it);
net_loop (1, is_got_it);
printf ("'%s'\n", *s);
return 0;
}
......
......@@ -360,7 +360,6 @@ char *suser;
extern int dc_working_num;
void do_send_code (const char *user) {
suser = strdup (user);
fprintf (stderr, "user='%s'\n", user);
want_dc_num = 0;
clear_packet ();
out_int (CODE_auth_send_code);
......@@ -440,7 +439,6 @@ int do_auth_check_phone (const char *user) {
clear_packet ();
out_int (CODE_auth_check_phone);
out_string (user);
printf ("'%s'\n", user);
check_phone_result = -1;
send_query (DC_working, packet_ptr - packet_buffer, packet_buffer, &check_phone_methods, 0);
net_loop (0, cr_f);
......
......@@ -109,7 +109,7 @@ void fetch_user (struct user *U) {
int ok = 1;
int 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;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment