diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index e6b5ac2c..351ffdc5 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -43,7 +43,7 @@ void newname(char *name) { if(name[0]) { - if(name[0] == ' ') return; + if(isspace(name[0]) || !isprint(name[0])) return; c2sinit = false; s_strncpy(player1->name, name, MAXNAMELEN+1); }