Fix ansi stripping

This commit is contained in:
Andrew Pamment 2016-04-08 13:35:53 +10:00
parent e5d2b185ea
commit 48ff9c6291

View File

@ -743,7 +743,7 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
s_putstring(socket, "\e[7;1H\e[0J"); s_putstring(socket, "\e[7;1H\e[0J");
} }
} else if (body[z] == '\e' && body[z + 1] == '[') { } else if (body[z] == '\e' && body[z + 1] == '[') {
while (strchr("ABCDEFGHIGJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", body[z]) != NULL) while (strchr("ABCDEFGHIGJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", body[z]) == NULL)
z++; z++;
} else { } else {
chars++; chars++;