Fix ansi stripping
This commit is contained in:
parent
e5d2b185ea
commit
48ff9c6291
@ -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++;
|
||||||
|
Reference in New Issue
Block a user