if (c == '&' && txt[1] == 'c') { if (isextendedcode(txt[2]) && isextendedcode(txt[3]) && isextendedcode(txt[4])) { // ezQuake color codes, just strip it for now txt += 5; continue; } }