mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
check nickname for invalid chars; ticket #547
This commit is contained in:
parent
8c0dd7f431
commit
eee784f155
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue