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;
|
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];
|
||||||
|
|
Loading…
Reference in a new issue