client: message tweak

This commit is contained in:
David Anderson 2013-09-17 13:35:28 -07:00
parent dd41c91c32
commit f4cfc8a624
1 changed files with 4 additions and 6 deletions

View File

@ -90,20 +90,18 @@ int CLIENT_STATE::parse_state_file() {
const char *fname; const char *fname;
// Look for a valid state file: // Look for a valid state file:
// First the regular one, then the "next" one. // First "next", then regular, then "prev"
// //
if (valid_state_file(STATE_FILE_NEXT)) { if (valid_state_file(STATE_FILE_NEXT)) {
fname = STATE_FILE_NEXT; fname = STATE_FILE_NEXT;
msg_printf(0, MSG_INFO, "Using state file %s", STATE_FILE_NEXT);
} else if (valid_state_file(STATE_FILE_NAME)) { } else if (valid_state_file(STATE_FILE_NAME)) {
fname = STATE_FILE_NAME; fname = STATE_FILE_NAME;
} else if (valid_state_file(STATE_FILE_PREV)) { } else if (valid_state_file(STATE_FILE_PREV)) {
msg_printf(0, MSG_INFO, "Using state file %s", STATE_FILE_PREV);
fname = STATE_FILE_PREV; fname = STATE_FILE_PREV;
} else { } else {
if (log_flags.statefile_debug) { msg_printf(0, MSG_INFO, "Creating new client state file");
msg_printf(0, MSG_INFO,
"[statefile] CLIENT_STATE::parse_state_file(): No state file; will create one"
);
}
// avoid warning messages about version // avoid warning messages about version
// //