Re-fix doors

This commit is contained in:
Andrew Pamment 2016-04-09 12:00:27 +10:00
parent f9685dbdba
commit 9e73cefd91

View File

@ -200,9 +200,7 @@ void rundoor(int socket, struct user_record *user, char *cmd, int stdio) {
disconnect(socket); disconnect(socket);
return; return;
} }
if (c == '\r') { if (c == '\n' || c == '\0') {
c = '\n';
} else if (c == '\n' || c == '\0') {
continue; continue;
} }
write(master, &c, 1); write(master, &c, 1);