Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mcrcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ void packet_print(rc_packet *packet)

// print newline if string has no newline
if (packet->data[i-1] != 10 && packet->data[i-1] != 13) putchar('\n');

fflush(stdout);
}

rc_packet *packet_build(int id, int cmd, char *s1)
Expand Down Expand Up @@ -654,6 +656,7 @@ int run_terminal_mode(int sock)

while (global_connection_alive) {
putchar('>');
fflush(stdout);
int len = get_line(command, DATA_BUFFSIZE);

if ((strcasecmp(command, "exit") && strcasecmp(command, "quit")) == 0)
Expand Down