Fixed issue where player names that begin with x are not displayed.

This commit is contained in:
2017-03-19 01:46:32 -07:00
parent afb0a4848e
commit 09a972b4d3

View File

@ -143,14 +143,15 @@ static void b(char * const str) {
if (strlen(token) > 1) {
printf("%s", token + 1);
}
} else if (c == 'x' && strlen(token) > 3) {
if (isxdigit(token[1]) && isxdigit(token[2]) && isxdigit(token[3])) {
hexspan(token + 1); //exclude x
if (strlen(token) > 4){
printf("%s", token + 4);
}
printf("</span>");
} else if ((c == 'x' && strlen(token) > 3) &&
(isxdigit(token[1]) &&
isxdigit(token[2]) &&
isxdigit(token[3]))) {
hexspan(token + 1); //exclude x
if (strlen(token) > 4){
printf("%s", token + 4);
}
printf("</span>");
} else {
printf("%s", token);
}