Fixed replaceToken causing segfaults
Cleaned up cl_console.c
Made chat detection a bit more accurate