Re-fix doors
This commit is contained in:
parent
f9685dbdba
commit
9e73cefd91
4
doors.c
4
doors.c
@ -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);
|
||||||
|
Reference in New Issue
Block a user