mirror of
https://github.com/Tiiffi/mcrcon.git
synced 2025-10-27 19:31:07 -04:00
Tidy code formatting
This commit is contained in:
12
mcrcon.c
12
mcrcon.c
@ -196,25 +196,25 @@ int main(int argc, char *argv[])
|
||||
case 'i': terminal_mode = 1; break;
|
||||
case 'r': global_raw_output = 1; break;
|
||||
case 'w':
|
||||
global_wait_seconds = mcrcon_parse_seconds(optarg); break;
|
||||
global_wait_seconds = mcrcon_parse_seconds(optarg);
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
puts(VER_STR"\nhttps://github.com/Tiiffi/mcrcon\n");
|
||||
exit(EXIT_SUCCESS);
|
||||
|
||||
case 'h': usage(); break;
|
||||
|
||||
default: exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
if (pass == NULL)
|
||||
{
|
||||
if (pass == NULL) {
|
||||
puts("You must give password (-p password). Try 'mcrcon -h' or 'man mcrcon' for help.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(optind == argc && terminal_mode == 0)
|
||||
terminal_mode = 1;
|
||||
|
||||
if(optind == argc && terminal_mode == 0) terminal_mode = 1;
|
||||
|
||||
// safety features to prevent "IO: Connection reset" bug on the server side
|
||||
atexit(&exit_proc);
|
||||
|
||||
Reference in New Issue
Block a user