check nickname for invalid chars; ticket #547

This commit is contained in:
Dominik Geyer 2008-11-01 15:09:40 +00:00
parent 8c0dd7f431
commit eee784f155

View file

@ -289,14 +289,13 @@ void mods_message(int msgtype, int client_id)
p->color_feet = msg->color_feet;
// check for invalid chars
/*
unsigned char *p = (unsigned char *)name;
while (*p)
unsigned char *name = (unsigned char *)msg->name;
while (*name)
{
if(*p < 32)
*p = ' ';
p++;
}*/
if(*name < 32)
*name = ' ';
name++;
}
// copy old name
char oldname[MAX_NAME_LENGTH];