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; p->color_feet = msg->color_feet;
// check for invalid chars // check for invalid chars
/* unsigned char *name = (unsigned char *)msg->name;
unsigned char *p = (unsigned char *)name; while (*name)
while (*p)
{ {
if(*p < 32) if(*name < 32)
*p = ' '; *name = ' ';
p++; name++;
}*/ }
// copy old name // copy old name
char oldname[MAX_NAME_LENGTH]; char oldname[MAX_NAME_LENGTH];