Tidy up unattached warning, only print when showing motd
This commit is contained in:
@@ -441,10 +441,9 @@ int run_server( const char *desired_ip, const char *desired_port,
|
||||
|
||||
if ( with_motd && (!motd_hushed()) ) {
|
||||
print_motd();
|
||||
warn_unattached( utmp_entry );
|
||||
}
|
||||
|
||||
warn_unattached( utmp_entry );
|
||||
|
||||
Crypto::reenable_dumping_core();
|
||||
|
||||
if ( execvp( command_path.c_str(), command_argv ) < 0 ) {
|
||||
@@ -808,7 +807,7 @@ void warn_unattached( const char *ignore_entry )
|
||||
for ( vector< string >::const_iterator it = unattached_who_lines.begin();
|
||||
it != unattached_who_lines.end();
|
||||
it++ ) {
|
||||
printf( "%s\n", it->c_str() );
|
||||
printf( "| %s\n", it->c_str() );
|
||||
}
|
||||
|
||||
printf( "\n" );
|
||||
|
||||
Reference in New Issue
Block a user