Commit efb1b482 authored by Vysheng's avatar Vysheng

Fixed change from v1 of auth file to v2

parent 14fd4006
...@@ -762,6 +762,9 @@ void print_service_message (struct message *M) { ...@@ -762,6 +762,9 @@ void print_service_message (struct message *M) {
push_color (COLOR_GREY); push_color (COLOR_GREY);
push_color (COLOR_MAGENTA); push_color (COLOR_MAGENTA);
if (msg_num_mode) {
printf ("%d ", M->id);
}
print_date (M->date); print_date (M->date);
pop_color (); pop_color ();
printf (" "); printf (" ");
......
...@@ -270,14 +270,12 @@ int loop (void) { ...@@ -270,14 +270,12 @@ int loop (void) {
if (verbosity) { if (verbosity) {
logprintf ("DC_info: %d new DC got\n", new_dc_num); logprintf ("DC_info: %d new DC got\n", new_dc_num);
} }
if (new_dc_num) {
int i; int i;
for (i = 0; i <= MAX_DC_NUM; i++) if (DC_list[i] && !DC_list[i]->auth_key_id) { for (i = 0; i <= MAX_DC_NUM; i++) if (DC_list[i] && !DC_list[i]->auth_key_id) {
dc_authorize (DC_list[i]); dc_authorize (DC_list[i]);
assert (DC_list[i]->auth_key_id); assert (DC_list[i]->auth_key_id);
write_auth_file (); write_auth_file ();
} }
}
if (auth_state == 100) { if (auth_state == 100) {
if (!default_username) { if (!default_username) {
...@@ -362,7 +360,6 @@ int loop (void) { ...@@ -362,7 +360,6 @@ int loop (void) {
} }
} }
int i;
for (i = 0; i <= MAX_DC_NUM; i++) if (DC_list[i] && !DC_list[i]->has_auth) { for (i = 0; i <= MAX_DC_NUM; i++) if (DC_list[i] && !DC_list[i]->has_auth) {
do_export_auth (i); do_export_auth (i);
do_import_auth (i); do_import_auth (i);
......
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